浏览代码

Just removed a bunch of unuseful comments...

Daniele Alessandri 15 年之前
父节点
当前提交
e57348720f
共有 1 个文件被更改,包括 1 次插入5 次删除
  1. 1 5
      lib/Predis.php

+ 1 - 5
lib/Predis.php

@@ -167,7 +167,6 @@ class Client {
     }
 
     private static function initializeDefaultCommands() {
-        // NOTE: we don't use \Predis\Client::registerCommands for performance reasons.
         return array(
             /* miscellaneous commands */
             'ping'      => '\Predis\Commands\Ping',
@@ -510,7 +509,7 @@ class Response {
     }
 
     public static function getPrefixHandler($prefix) {
-        if (self::$_prefixHandlers == null) {
+        if (self::$_prefixHandlers === null) {
             self::$_prefixHandlers = self::initializePrefixHandlers();
         }
 
@@ -748,9 +747,6 @@ class Connection implements IConnection {
 }
 
 class ConnectionCluster implements IConnection, \IteratorAggregate {
-    // TODO: storing a temporary map of commands hashes to hashring items (that 
-    //       is, connections) could offer a notable speedup, but I am wondering 
-    //       about the increased memory footprint.
     // TODO: find a clean way to handle connection failures of single nodes.
 
     private $_pool, $_ring;