]> git.wh0rd.org - tt-rss.git/blobdiff - classes/rpc.php
remove long forgotten stuff related to feed debugging actionbar
[tt-rss.git] / classes / rpc.php
index 6ec14dd42ea19e3ac6f5ad540d178addc46bcfdb..dd592b4d46010633076fa3fdfd78b8228523dc24 100755 (executable)
@@ -348,22 +348,6 @@ class RPC extends Handler_Protected {
                print "</ul>";
        }
 
-       function purge() {
-               $ids = explode(",", $_REQUEST["ids"]);
-               $days = (int) $_REQUEST["days"];
-
-               $sth = $this->pdo->prepare("SELECT id FROM ttrss_feeds WHERE
-                               id = ? AND owner_uid = ?");
-
-               foreach ($ids as $id) {
-                       $sth->execute([$id, $_SESSION['uid']]);
-
-                       if ($sth->fetch()) {
-                               purge_feed($id, $days);
-                       }
-               }
-       }
-
        function updateFeedBrowser() {
                if (defined('_DISABLE_FEED_BROWSER') && _DISABLE_FEED_BROWSER) return;