DEV: Remove some old committed (#100)

diff --git a/assets/javascripts/discourse/initializers/discourse-voting.js.es6 b/assets/javascripts/discourse/initializers/discourse-voting.js.es6
index 3a21124..75c5700 100644
--- a/assets/javascripts/discourse/initializers/discourse-voting.js.es6
+++ b/assets/javascripts/discourse/initializers/discourse-voting.js.es6
@@ -9,19 +9,14 @@ export default {
     withPluginApi("0.8.32", (api) => {
       const siteSettings = api.container.lookup("site-settings:main");
       if (siteSettings.voting_enabled) {
-        // TODO: Remove if check once Discourse 2.6 is stable
-        if (
-          I18n.findTranslation("notifications.votes_released", { locale: "en" })
-        ) {
-          const pageSearchController = api.container.lookup(
-            "controller:full-page-search"
-          );
-          pageSearchController.sortOrders.pushObject({
-            name: I18n.t("search.most_votes"),
-            id: 5,
-            term: "order:votes",
-          });
-        }
+        const pageSearchController = api.container.lookup(
+          "controller:full-page-search"
+        );
+        pageSearchController.sortOrders.pushObject({
+          name: I18n.t("search.most_votes"),
+          id: 5,
+          term: "order:votes",
+        });
 
         api.addNavigationBarItem({
           name: "votes",
diff --git a/plugin.rb b/plugin.rb
index 34829b1..4fc64c5 100755
--- a/plugin.rb
+++ b/plugin.rb
@@ -102,18 +102,12 @@ after_initialize do
     add_to_serializer(:basic_category, :can_vote, false) { SiteSetting.voting_enabled }
     add_to_serializer(:basic_category, :include_can_vote?) { Category.can_vote?(object.id) }
 
-    # TODO: Remove if check once Discourse 2.6 is stable
-    if respond_to?(:register_search_advanced_filter)
-      register_search_advanced_filter(/^min_vote_count:(\d+)$/) do |posts, match|
-        posts.where("(SELECT votes_count FROM discourse_voting_topic_vote_count WHERE discourse_voting_topic_vote_count.topic_id = posts.topic_id) >= ?", match.to_i)
-      end
+    register_search_advanced_filter(/^min_vote_count:(\d+)$/) do |posts, match|
+      posts.where("(SELECT votes_count FROM discourse_voting_topic_vote_count WHERE discourse_voting_topic_vote_count.topic_id = posts.topic_id) >= ?", match.to_i)
     end
 
-    # TODO: Remove if check once Discourse 2.6 is stable
-    if respond_to?(:register_search_advanced_order)
-      register_search_advanced_order(:votes) do |posts|
-        posts.reorder("COALESCE((SELECT dvtvc.votes_count FROM discourse_voting_topic_vote_count dvtvc WHERE dvtvc.topic_id = topics.id), 0) DESC")
-      end
+    register_search_advanced_order(:votes) do |posts|
+      posts.reorder("COALESCE((SELECT dvtvc.votes_count FROM discourse_voting_topic_vote_count dvtvc WHERE dvtvc.topic_id = topics.id), 0) DESC")
     end
 
     class ::Category
@@ -233,9 +227,6 @@ after_initialize do
 
             return if args[:trashed]
 
-            # TODO: Remove once Discourse 2.6 is stable
-            return unless Plugin::Instance.new.respond_to?(:register_search_advanced_filter)
-
             votes.find_each do |vote|
               Notification.create!(user_id: vote.user_id,
                                    notification_type: Notification.types[:votes_released],

GitHub sha: b8ee3c05ed2cf369117902764ef2faddd9774ab3

This commit appears in #100 which was approved by Falco. It was merged by pmusaraj.