From a569565cfff1225d62b6adb76ed0e4a07016a47f Mon Sep 17 00:00:00 2001 From: Zixaphir Date: Mon, 6 Jan 2014 09:08:44 -0700 Subject: [PATCH] Remove debug code --- builds/4chan-X.user.js | 6 +----- builds/crx/script.js | 6 +----- src/Monitoring/Unread.coffee | 8 ++------ 3 files changed, 4 insertions(+), 16 deletions(-) diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index d1af9a85a..dd6cac59e 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -9715,14 +9715,10 @@ break; } ID = post.ID; + posts.rm(ID); if (Conf['Mark Quotes of You'] && post.info.yours) { QuoteYou.lastRead = post.nodes.root; } - posts.rm(ID); - if (post === posts.first) { - c.log(posts); - break; - } } if (!ID) { return; diff --git a/builds/crx/script.js b/builds/crx/script.js index 41ea48332..f7758362c 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -9698,14 +9698,10 @@ break; } ID = post.ID; + posts.rm(ID); if (Conf['Mark Quotes of You'] && post.info.yours) { QuoteYou.lastRead = post.nodes.root; } - posts.rm(ID); - if (post === posts.first) { - c.log(posts); - break; - } } if (!ID) { return; diff --git a/src/Monitoring/Unread.coffee b/src/Monitoring/Unread.coffee index 146578b67..1eeeebb0c 100755 --- a/src/Monitoring/Unread.coffee +++ b/src/Monitoring/Unread.coffee @@ -142,15 +142,11 @@ Unread = {posts} = Unread while post = posts.first break unless Header.getBottomOf(post.nodes.root) > -1 # post is not completely read - {ID} = post - if Conf['Mark Quotes of You'] and post.info.yours - QuoteYou.lastRead = post.nodes.root posts.rm ID - if post is posts.first - c.log posts - break + if Conf['Mark Quotes of You'] and post.info.yours + QuoteYou.lastRead = post.nodes.root return unless ID