Remove debugging statements

This commit is contained in:
Zach Copley 2010-09-29 16:28:29 -07:00
parent f339059990
commit 148ab660b6
2 changed files with 2 additions and 9 deletions

View File

@ -216,7 +216,7 @@ class AnonymousFavePlugin extends Plugin {
$id = $profile->insert(); $id = $profile->insert();
if (!$id) { if (!$id) {
throw new ServerException(_m("Couldn't create anonymous user session")); throw new ServerException(_m("Couldn't create anonymous user session."));
} }
// Stick the Profile ID into the nickname // Stick the Profile ID into the nickname
@ -226,7 +226,7 @@ class AnonymousFavePlugin extends Plugin {
$result = $profile->update($orig); $result = $profile->update($orig);
if (!$result) { if (!$result) {
throw new ServerException(_m("Couldn't create anonymous user session")); throw new ServerException(_m("Couldn't create anonymous user session."));
} }
common_log( common_log(

View File

@ -149,7 +149,6 @@ class Fave_tally extends Memcached_DataObject
static function increment($noticeID) static function increment($noticeID)
{ {
common_debug("XXXXXXXXX Fave_tally::increment()");
$tally = Fave_tally::ensureTally($noticeID); $tally = Fave_tally::ensureTally($noticeID);
$orig = clone($tally); $orig = clone($tally);
@ -177,8 +176,6 @@ class Fave_tally extends Memcached_DataObject
static function decrement($noticeID) static function decrement($noticeID)
{ {
common_debug("XXXXXXXXX Fave_tally::decrement()");
$tally = Fave_tally::ensureTally($noticeID); $tally = Fave_tally::ensureTally($noticeID);
if ($tally->count > 0) { if ($tally->count > 0) {
@ -212,7 +209,6 @@ class Fave_tally extends Memcached_DataObject
$tally = Fave_tally::staticGet('notice_id', $noticeID); $tally = Fave_tally::staticGet('notice_id', $noticeID);
if (!$tally) { if (!$tally) {
common_debug("Fave_tally::ensureTally - creating tally for notice " . $noticeID);
$tally = new Fave_tally(); $tally = new Fave_tally();
$tally->notice_id = $noticeID; $tally->notice_id = $noticeID;
$tally->count = Fave_tally::countExistingFaves($noticeID); $tally->count = Fave_tally::countExistingFaves($noticeID);
@ -243,9 +239,6 @@ class Fave_tally extends Memcached_DataObject
$fave = new Fave(); $fave = new Fave();
$fave->notice_id = $noticeID; $fave->notice_id = $noticeID;
$total = $fave->count(); $total = $fave->count();
common_debug("ZZZZZZZ notice " . $noticeID . ' has ' . $total . " faves");
return $total; return $total;
} }
} }