From 4a80c57c50a474c57ba76eb75c1f01daf6e7f121 Mon Sep 17 00:00:00 2001
From: Andrew Dolgov
Date: Wed, 19 Feb 2014 15:42:52 +0400
Subject: [PATCH] remove some unused code reported by phpmd
---
classes/article.php | 1 -
classes/dlg.php | 1 -
classes/feeds.php | 22 +++++-----------------
classes/handler/public.php | 10 +++++-----
classes/pref/feeds.php | 8 ++------
classes/pref/filters.php | 19 +------------------
classes/pref/prefs.php | 1 -
classes/rpc.php | 13 ++++++-------
include/digest.php | 2 --
include/feedbrowser.php | 5 ++---
include/functions.php | 15 ++++-----------
include/labels.php | 2 +-
12 files changed, 26 insertions(+), 73 deletions(-)
diff --git a/classes/article.php b/classes/article.php
index 398132d1..f796bf63 100644
--- a/classes/article.php
+++ b/classes/article.php
@@ -30,7 +30,6 @@ class Article extends Handler_Protected {
$id = $this->dbh->escape_string($_REQUEST["id"]);
$cids = explode(",", $this->dbh->escape_string($_REQUEST["cids"]));
$mode = $this->dbh->escape_string($_REQUEST["mode"]);
- $omode = $this->dbh->escape_string($_REQUEST["omode"]);
// in prefetch mode we only output requested cids, main article
// just gets marked as read (it already exists in client cache)
diff --git a/classes/dlg.php b/classes/dlg.php
index d1b5745e..25a194be 100644
--- a/classes/dlg.php
+++ b/classes/dlg.php
@@ -16,7 +16,6 @@ class Dlg extends Handler_Protected {
print __("If you have imported labels and/or filters, you might need to reload preferences to see your new data.") . "
";
print "";
- $owner_uid = $_SESSION["uid"];
$this->dbh->query("BEGIN");
diff --git a/classes/feeds.php b/classes/feeds.php
index 8d4c052d..ea396791 100644
--- a/classes/feeds.php
+++ b/classes/feeds.php
@@ -13,12 +13,6 @@ class Feeds extends Handler_Protected {
$feed_id, $is_cat, $search,
$search_mode, $view_mode, $error, $feed_last_updated) {
- $page_prev_link = "viewFeedGoPage(-1)";
- $page_next_link = "viewFeedGoPage(1)";
- $page_first_link = "viewFeedGoPage(0)";
-
- $catchup_page_link = "catchupPage()";
- $catchup_feed_link = "catchupCurrentFeed()";
$catchup_sel_link = "catchupSelection()";
$archive_sel_link = "archiveSelection()";
@@ -292,8 +286,6 @@ class Feeds extends Handler_Protected {
$num_unread = 0;
$cur_feed_title = '';
- $fresh_intl = get_pref("FRESH_ARTICLE_MAX_AGE") * 60 * 60;
-
if ($_REQUEST["debug"]) $timing_info = print_checkpoint("PS", $timing_info);
$expand_cdm = get_pref('CDM_EXPANDED');
@@ -557,7 +549,7 @@ class Feeds extends Handler_Protected {
$reply['content'] .= "
";
- $reply['content'] .= "