Skip to content

Commit

Permalink
Cleanup unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
linc committed Mar 30, 2012
1 parent 0fd007e commit 917ac9d
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions plugins/Glue/class.glue.plugin.php
Expand Up @@ -50,27 +50,6 @@ public function CommentModel_AfterGet_Handler($Sender, $Args) {
}
}

/**
* Do CommentModel::Save2() on new comments.
*
* WordPress can't call Vanilla's framework to do all the updates,
* activity, and mentions. It would cause tremendous duplication to do
* all that in the WP plugin, so we quietly cURL to this "sekrit" URL.
*/
public function Controller_SaveComment($Sender, $Args) {
$CommentID = GetValue(1, $Args);

// Update metadata on the comment & trigger activity
$CommentModel = new CommentModel();
$CommentData = $CommentModel->GetID($CommentID);
$CommentData = self::HandleGuest($CommentData);
if (!$CommentData->Glued) {
$CommentModel->UpdateCommentCount($CommentData->DiscussionID);
$CommentModel->Save2($CommentID, TRUE);
$CommentModel->SetProperty($CommentID, 'Glued', 1);
}
}

/**
* Add 'Featured' tab.
*/
Expand Down Expand Up @@ -272,13 +251,6 @@ public function InsertWordPressUser($UserID, $Capability = FALSE) {
meta_value = '".mysql_real_escape_string($Capability)."'");
}

/**
* Create virtual controller.
*/
public function PluginController_Glue_Create($Sender, $Args = array()) {
$this->Dispatch($Sender, $Args);
}

/**
* Setting page.
*/
Expand Down

0 comments on commit 917ac9d

Please sign in to comment.