]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Removing unused functions from Bookmark plugin
authorMikael Nordfeldth <mmn@hethane.se>
Mon, 19 May 2014 13:19:17 +0000 (15:19 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Mon, 19 May 2014 13:19:17 +0000 (15:19 +0200)
plugins/Bookmark/BookmarkPlugin.php

index fc2aeb6a43f0483123e980af74b8e75255753223..e6a2d45290bb99bf6ceb9ae8b6fec2c5b504a2e6 100644 (file)
@@ -304,40 +304,6 @@ class BookmarkPlugin extends MicroAppPlugin
         return true;
     }
 
-    /**
-     * Save a remote bookmark (from Salmon or PuSH)
-     *
-     * @param Ostatus_profile $author   Author of the bookmark
-     * @param Activity        $activity Activity to save
-     *
-     * @return Notice resulting notice.
-     */
-    static private function _postRemoteBookmark(Ostatus_profile $author,
-                                                Activity $activity)
-    {
-        $bookmark = $activity->objects[0];
-
-        $options = array('uri' => $bookmark->id,
-                         'url' => $bookmark->link,
-                         'is_local' => Notice::REMOTE,
-                         'source' => 'ostatus');
-
-        return self::_postBookmark($author->localProfile(), $activity, $options);
-    }
-
-    /**
-     * Test if an activity represents posting a bookmark
-     *
-     * @param Activity $activity Activity to test
-     *
-     * @return true if it's a Post of a Bookmark, else false
-     */
-    static private function _isPostBookmark($activity)
-    {
-        return ($activity->verb == ActivityVerb::POST &&
-                $activity->objects[0]->type == ActivityObject::BOOKMARK);
-    }
-
     function types()
     {
         return array(ActivityObject::BOOKMARK);