From 9a84907d171a7a804a29c5310e9eefde283c9e7c Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Tue, 2 Aug 2011 23:11:41 -0400 Subject: [PATCH] Remove unused File::getAttachments() --- classes/File.php | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/classes/File.php b/classes/File.php index 36ffff585c..767a108087 100644 --- a/classes/File.php +++ b/classes/File.php @@ -55,23 +55,6 @@ class File extends Memcached_DataObject return 'http://www.facebook.com/login.php' === $url; } - /** - * Get the attachments for a particlar notice. - * - * @param int $post_id - * @return array of File objects - */ - static function getAttachments($post_id) { - $file = new File(); - $query = "select file.* from file join file_to_post on (file_id = file.id) where post_id = " . $file->escape($post_id); - $file = Memcached_DataObject::cachedQuery('File', $query); - $att = array(); - while ($file->fetch()) { - $att[] = clone($file); - } - return $att; - } - /** * Save a new file record. * -- 2.39.5