summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2011-08-31 14:23:59 +0400
committerAndrew Dolgov <[email protected]>2011-08-31 14:23:59 +0400
commit165c88ff3166825dcccfa2d30a9c3574e64c8549 (patch)
tree0d438bd9cf59a1e69a2f9399510fc1f4417f9d87
parent78b2c6ce9a0574433791cc7f3330bf8d729123d2 (diff)
remove unused headlines-info.unread
-rw-r--r--backend.php8
-rw-r--r--viewfeed.js1
2 files changed, 0 insertions, 9 deletions
diff --git a/backend.php b/backend.php
index cef42bb70..d039740b3 100644
--- a/backend.php
+++ b/backend.php
@@ -370,16 +370,8 @@
if ($_REQUEST["debug"]) $timing_info = print_checkpoint("05", $timing_info);
- $headlines_unread = ccache_find($link, $returned_feed, $_SESSION["uid"],
- $cat_view, true);
-
- if ($headlines_unread == -1) {
- $headlines_unread = getFeedUnread($link, $returned_feed, $cat_view);
- }
-
$reply['headlines-info'] = array("count" => (int) $headlines_count,
"vgroup_last_feed" => $vgroup_last_feed,
- "unread" => (int) $headlines_unread,
"disable_cache" => (bool) $disable_cache);
if ($_REQUEST["debug"]) $timing_info = print_checkpoint("20", $timing_info);
diff --git a/viewfeed.js b/viewfeed.js
index 0d20faf81..c41c49a96 100644
--- a/viewfeed.js
+++ b/viewfeed.js
@@ -51,7 +51,6 @@ function headlines_callback2(transport, offset) {
} catch (e) { };
var headlines_count = reply['headlines-info']['count'];
- var headlines_unread = reply['headlines-info']['unread'];
vgroup_last_feed = reply['headlines-info']['vgroup_last_feed'];