]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Revert debugging code
authorBrion Vibber <brion@pobox.com>
Thu, 31 Dec 2009 00:40:59 +0000 (16:40 -0800)
committerBrion Vibber <brion@pobox.com>
Thu, 31 Dec 2009 00:40:59 +0000 (16:40 -0800)
classes/Memcached_DataObject.php
lib/profilelist.php

index 4efec06abe261f6d9aa6beba9fc7debf2528c227..d8b0db5a69b7e1363a5487e6272050175d57f97d 100644 (file)
@@ -31,20 +31,11 @@ class Memcached_DataObject extends DB_DataObject
 
     function __destruct()
     {
-        if (get_class($this) == 'Profile')
-            common_log(LOG_INFO, 'subbug: destructing result id ' . $this->_DB_resultid);
         $this->free();
         if (method_exists('DB_DataObject', '__destruct')) {
             parent::__destruct();
         }
     }
-    
-    function free()
-    {
-        if (get_class($this) == 'Profile')
-            common_log(LOG_INFO, 'subbug: freeing result id ' . $this->_DB_resultid);
-        parent::free();
-    }
 
     function &staticGet($cls, $k, $v=null)
     {
index ae875ac011a9d6843720a0a76bb6438aa668a5de..3412d41d1c94b794b1a9251c2fd9e75d5eb326cc 100644 (file)
@@ -86,21 +86,16 @@ class ProfileList extends Widget
 
     function showProfiles()
     {
-        $log = strtolower(get_class($this)) == 'subscriberslist' && $this->owner->nickname == 'petercook';
         $cnt = 0;
 
-        if ($log) common_log(LOG_INFO, "subbug: starting with {$this->profile->N}");
         while ($this->profile->fetch()) {
             $cnt++;
             if($cnt > PROFILES_PER_PAGE) {
-                if ($log) common_log(LOG_INFO, "subbug: breaking at $cnt");
                 break;
             }
-            if ($log) common_log(LOG_INFO, "subbug: showing at $cnt");
             $pli = $this->newListItem($this->profile);
             $pli->show();
         }
-        if ($log) common_log(LOG_INFO, "subbug: ended at $cnt");
 
         return $cnt;
     }