Bläddra i källkod

Issue #155 : suppression fonctions commentées

Marien Fressinaud 12 år sedan
förälder
incheckning
d9975d86a2
1 ändrade filer med 1 tillägg och 22 borttagningar
  1. 1 22
      app/models/Entry.php

+ 1 - 22
app/models/Entry.php

@@ -461,24 +461,6 @@ class EntryDAO extends Model_pdo {
 		return $unreadRead['unread'];
 		return $unreadRead['unread'];
 	}
 	}
 
 
-	/*public function countNotReadByFeed ($id) {	//Is this used?
-		$sql = 'SELECT COUNT(*) AS count FROM ' . $this->prefix . 'entry WHERE is_read = 0 AND id_feed = ?';
-		$stm = $this->bd->prepare ($sql);
-		$stm->execute (array ($id));
-		$res = $stm->fetchAll (PDO::FETCH_ASSOC);
-
-		return $res[0]['count'];
-	}*/
-
-	/*public function countNotReadByCat ($id) {	//Is this used?
-		$sql = 'SELECT COUNT(*) AS count FROM ' . $this->prefix . 'entry e INNER JOIN  ' . $this->prefix . 'feed f ON e.id_feed = f.id WHERE is_read=0 AND category = ?';
-		$stm = $this->bd->prepare ($sql);
-		$stm->execute (array ($id));
-		$res = $stm->fetchAll (PDO::FETCH_ASSOC);
-
-		return $res[0]['count'];
-	}*/
-
 	public function countUnreadReadFavorites () {
 	public function countUnreadReadFavorites () {
 		$sql = 'SELECT is_read, COUNT(*) AS count FROM ' . $this->prefix . 'entry WHERE is_favorite=1 GROUP BY is_read';
 		$sql = 'SELECT is_read, COUNT(*) AS count FROM ' . $this->prefix . 'entry WHERE is_favorite=1 GROUP BY is_read';
 		$stm = $this->bd->prepare ($sql);
 		$stm = $this->bd->prepare ($sql);
@@ -493,10 +475,7 @@ class EntryDAO extends Model_pdo {
 		}
 		}
 		return $readUnread;
 		return $readUnread;
 	}
 	}
-	/*public function countNotReadFavorites () {	//Is this used?	//Deprecated: use countUnreadReadFavorites() instead
-		$unreadRead = $this->countUnreadReadFavorites ();	//This makes better use of caching
-		return $unreadRead['unread'];
-	}*/
+
 	public function countFavorites () {	//Deprecated: use countUnreadReadFavorites() instead
 	public function countFavorites () {	//Deprecated: use countUnreadReadFavorites() instead
 		$unreadRead = $this->countUnreadReadFavorites ();	//This makes better use of caching
 		$unreadRead = $this->countUnreadReadFavorites ();	//This makes better use of caching
 		return $unreadRead['unread'] + $unreadRead['read'];
 		return $unreadRead['unread'] + $unreadRead['read'];