From 6732f98f2d826d4a782bd812f5ca42b1ac94facb Mon Sep 17 00:00:00 2001 From: Erik Bernhardson Date: Thu, 11 Sep 2014 22:19:51 -0700 Subject: [PATCH] Hygiene: Delete commented out code Change-Id: I0c04d03d876568ff023bd75062e3f89bd9248fb9 --- includes/DiscussionParser.php | 31 +------------------------------ 1 file changed, 1 insertion(+), 30 deletions(-) diff --git a/includes/DiscussionParser.php b/includes/DiscussionParser.php index 5110af936..bfb648b65 100644 --- a/includes/DiscussionParser.php +++ b/includes/DiscussionParser.php @@ -16,7 +16,6 @@ abstract class EchoDiscussionParser { */ static function generateEventsForRevision( $revision ) { $interpretation = self::getChangeInterpretationForRevision( $revision ); - $createdEvents = false; // use slave database if there is a previous revision if ( $revision->getPrevious() ) { @@ -40,43 +39,15 @@ abstract class EchoDiscussionParser { if ( $action['type'] == 'add-comment' ) { $fullSection = $action['full-section']; $header = self::extractHeader( $fullSection ); - /* - EchoEvent::create( array( - 'type' => 'add-comment', - 'title' => $title, - 'extra' => array( - 'revid' => $revision->getID(), - 'section-title' => $header, - 'content' => $action['content'], - ), - 'agent' => $user, - ) ); - */ self::generateMentionEvents( $header, $action['content'], $revision, $user ); - - //$createdEvents = true; } elseif ( $action['type'] == 'new-section-with-comment' ) { $content = $action['content']; $header = self::extractHeader( $content ); - /* - EchoEvent::create( array( - 'type' => 'add-talkpage-topic', - 'title' => $title, - 'extra' => array( - 'revid' => $revision->getID(), - 'section-title' => $header, - 'content' => $content, - ), - 'agent' => $user, - ) ); - */ self::generateMentionEvents( $header, $content, $revision, $user ); - - //$createdEvents = true; } } - if ( !$createdEvents && $title->getNamespace() == NS_USER_TALK ) { + if ( $title->getNamespace() == NS_USER_TALK ) { $notifyUser = User::newFromName( $title->getText() ); // If the recipient is a valid non-anonymous user and hasn't turned // off their notifications, generate a talk page post Echo notification.