Remove dead code in order

These aren't used anywhere
This commit is contained in:
Matt-Yorkley
2021-04-23 10:23:40 +01:00
parent 9b52c453db
commit caee2eb3e9

View File

@@ -135,18 +135,6 @@ module Spree
scope :finalized, -> { where(state: FINALIZED_STATES) }
def self.by_number(number)
where(number: number)
end
def self.between(start_date, end_date)
where(created_at: start_date..end_date)
end
def self.by_customer(customer)
joins(:user).where("#{Spree.user_class.table_name}.email" => customer)
end
def self.by_state(state)
where(state: state)
end