From 6ae05b723a5f0ea57c7d23907aac5faa94d64499 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Thu, 23 Jun 2011 21:26:49 +0200 Subject: [PATCH] Unnecessary code. --- 4chan_x.user.js | 1 - script.coffee | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 182ea42e0..7d53d2dda 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1893,7 +1893,6 @@ } _results = []; for (qid in quotes) { - quote = quotes[qid]; if (!(el = d.getElementById(qid))) { continue; } diff --git a/script.coffee b/script.coffee index c1ea208cd..c91071dc0 100644 --- a/script.coffee +++ b/script.coffee @@ -1514,7 +1514,7 @@ quoteBacklink = continue unless qid = quote.hash[1..] #duplicate quotes get overwritten quotes[qid] = quote - for qid, quote of quotes + for qid of quotes continue unless el = d.getElementById qid #don't backlink the op continue if opbl and el.className is 'op'