Remove some useless code in QuoteCT.

This commit is contained in:
Mayhem 2013-08-13 18:56:10 +02:00
parent 2f13855508
commit 46c50baaba

View File

@ -10,12 +10,9 @@ QuoteCT =
node: ->
# Stop there if it's a clone of a post in the same thread.
return if @isClone and @thread is @context.thread
# Stop there if there's no quotes in that post.
return unless (quotes = @quotes).length
{quotelinks} = @nodes
{board, thread} = if @isClone then @context else @
for quotelink in quotelinks
for quotelink in @nodes.quotelinks
{boardID, threadID} = Get.postDataFromLink quotelink
continue unless threadID # deadlink
if @isClone