mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-02-10 16:01:33 +00:00
remove some unused code reported by phpmd
This commit is contained in:
@@ -395,7 +395,7 @@ class Pref_Feeds extends Handler_Protected {
|
||||
# print_r($data['items']);
|
||||
|
||||
if (is_array($data) && is_array($data['items'])) {
|
||||
$cat_order_id = 0;
|
||||
# $cat_order_id = 0;
|
||||
|
||||
$data_map = array();
|
||||
$root_item = false;
|
||||
@@ -962,7 +962,7 @@ class Pref_Feeds extends Handler_Protected {
|
||||
|
||||
if (!$batch) {
|
||||
|
||||
$result = $this->dbh->query("UPDATE ttrss_feeds SET
|
||||
$this->dbh->query("UPDATE ttrss_feeds SET
|
||||
$category_qpart
|
||||
title = '$feed_title', feed_url = '$feed_link',
|
||||
update_interval = '$upd_intl',
|
||||
@@ -1573,8 +1573,6 @@ class Pref_Feeds extends Handler_Protected {
|
||||
# class needed for selectTableRows()
|
||||
print "<tr class=\"placeholder\" $this_row_id>";
|
||||
|
||||
$edit_title = htmlspecialchars($line["title"]);
|
||||
|
||||
# id needed for selectTableRows()
|
||||
print "<td width='5%' align='center'><input
|
||||
onclick='toggleSelectRow2(this);' dojoType=\"dijit.form.CheckBox\"
|
||||
@@ -1639,8 +1637,6 @@ class Pref_Feeds extends Handler_Protected {
|
||||
# class needed for selectTableRows()
|
||||
print "<tr class=\"placeholder\" $this_row_id>";
|
||||
|
||||
$edit_title = htmlspecialchars($line["title"]);
|
||||
|
||||
# id needed for selectTableRows()
|
||||
print "<td width='5%' align='center'><input
|
||||
onclick='toggleSelectRow2(this);' dojoType=\"dijit.form.CheckBox\"
|
||||
|
||||
@@ -88,7 +88,6 @@ class Pref_Filters extends Handler_Protected {
|
||||
|
||||
$result = $qfh_ret[0];
|
||||
|
||||
$articles = array();
|
||||
$found = 0;
|
||||
|
||||
print __("Articles matching this filter:");
|
||||
@@ -103,9 +102,6 @@ class Pref_Filters extends Handler_Protected {
|
||||
$line = $p->hook_query_headlines($line, 100);
|
||||
}
|
||||
|
||||
$entry_timestamp = strtotime($line["updated"]);
|
||||
$entry_tags = get_article_tags($line["id"], $_SESSION["uid"]);
|
||||
|
||||
$content_preview = $line["content_preview"];
|
||||
|
||||
if ($line["feed_title"])
|
||||
@@ -174,24 +170,11 @@ class Pref_Filters extends Handler_Protected {
|
||||
owner_uid = ".$_SESSION["uid"]." ORDER BY order_id, title");
|
||||
|
||||
|
||||
$action_id = -1;
|
||||
$folder = array();
|
||||
$folder['items'] = array();
|
||||
|
||||
while ($line = $this->dbh->fetch_assoc($result)) {
|
||||
|
||||
/* if ($action_id != $line["action_id"]) {
|
||||
if (count($folder['items']) > 0) {
|
||||
array_push($root['items'], $folder);
|
||||
}
|
||||
|
||||
$folder = array();
|
||||
$folder['id'] = $line["action_id"];
|
||||
$folder['name'] = __($line["action_name"]);
|
||||
$folder['items'] = array();
|
||||
$action_id = $line["action_id"];
|
||||
} */
|
||||
|
||||
$name = $this->getFilterName($line["id"]);
|
||||
|
||||
$match_ok = false;
|
||||
@@ -471,7 +454,7 @@ class Pref_Filters extends Handler_Protected {
|
||||
$inverse = checkbox_to_sql_bool($this->dbh->escape_string($_REQUEST["inverse"]));
|
||||
$title = $this->dbh->escape_string($_REQUEST["title"]);
|
||||
|
||||
$result = $this->dbh->query("UPDATE ttrss_filters2 SET enabled = $enabled,
|
||||
$this->dbh->query("UPDATE ttrss_filters2 SET enabled = $enabled,
|
||||
match_any_rule = $match_any_rule,
|
||||
inverse = $inverse,
|
||||
title = '$title'
|
||||
|
||||
@@ -887,7 +887,6 @@ class Pref_Prefs extends Handler_Protected {
|
||||
|
||||
if (!$otp_enabled) {
|
||||
$secret = $base32->encode(sha1($this->dbh->fetch_result($result, 0, "salt")));
|
||||
$topt = new \OTPHP\TOTP($secret);
|
||||
print QRcode::png("otpauth://totp/".urlencode($login).
|
||||
"?secret=$secret&issuer=".urlencode("Tiny Tiny RSS"));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user