From 59ab71b0608273c6ed44288bb903f987eb146a5f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?R=C3=A9gis=20Hanol?= <regis@hanol.fr>
Date: Sat, 18 Jan 2014 18:01:55 +0100
Subject: [PATCH] remove duplicated order_with_pinned_sql method

---
 lib/topic_query_sql.rb | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/lib/topic_query_sql.rb b/lib/topic_query_sql.rb
index 5f1df5fd6..46a80fd03 100644
--- a/lib/topic_query_sql.rb
+++ b/lib/topic_query_sql.rb
@@ -46,13 +46,5 @@ module TopicQuerySQL
       "CASE WHEN (topics.pinned_at IS NOT NULL) THEN 0 ELSE 1 END, topics.bumped_at DESC"
     end
 
-    def order_with_pinned_sql
-      "CASE
-        WHEN (COALESCE(topics.pinned_at, '#{lowest_date}') > COALESCE(tu.cleared_pinned_at, '#{lowest_date}'))
-          THEN '#{highest_date}'
-        ELSE topics.bumped_at
-       END DESC"
-    end
-
   end
 end