Remove unused constant in the codebase.

Remove unused constant in the codebase.

From 125bb46052f7f0dd8e8c3ef8779214afd7fd932a Mon Sep 17 00:00:00 2001
From: Guo Xiang Tan <tgx_world@hotmail.com>
Date: Mon, 3 Dec 2018 11:04:00 +0800
Subject: [PATCH] Remove unused constant in the codebase.


diff --git a/app/models/invite.rb b/app/models/invite.rb
index 23f09df..e59c4fc 100644
--- a/app/models/invite.rb
+++ b/app/models/invite.rb
@@ -166,9 +166,6 @@ class Invite < ActiveRecord::Base
     group_ids
   end
 
-  INVITE_ORDER = <<~SQL
-  SQL
-
   def self.find_all_invites_from(inviter, offset = 0, limit = SiteSetting.invites_per_page)
     Invite.where(invited_by_id: inviter.id)
       .where('invites.email IS NOT NULL')

GitHub

1 Like

Isn’t that something linters should be able to find out?