Removing lots of old code that is no longer used.

This commit is contained in:
paul.baranowski 2011-03-05 11:06:22 -05:00
parent cb119802df
commit 90b46d8eb3
30 changed files with 9 additions and 12517 deletions

View file

@ -1271,14 +1271,14 @@ class StoredFile {
if (!file_exists($this->filepath) || @unlink($this->filepath)) {
$this->exists = FALSE;
return TRUE;
}
}
else {
return PEAR::raiseError(
"StoredFile::deleteFile: unlink failed ({$this->filepath})",
GBERR_FILEIO
);
}
}
}
else {
$this->exists = FALSE;
return TRUE;
@ -1304,7 +1304,7 @@ class StoredFile {
Playlist::DeleteFileFromAllPlaylists($this->id);
}
$sql = "DELETE FROM ".$CC_CONFIG['filesTable']
." WHERE gunid='{$this->gunid}'";
$res = $CC_DBC->query($sql);
@ -1717,7 +1717,7 @@ class StoredFile {
foreach($searchCols as $col) {
$escapedTerm = pg_escape_string($term);
$innerCond[] = "{$col}::text ILIKE '%{$escapedTerm}%'";
$innerCond[] = "{$col}::text ILIKE '%{$escapedTerm}%'";
}
$outerCond[] = "(".join(" OR ", $innerCond).")";
}