Skip to content

Commit

Permalink
Remove deprecated code
Browse files Browse the repository at this point in the history
In the deprecation warning we said we'd remove this in Solidus 2.0.
  • Loading branch information
jordan-brough committed Sep 21, 2016
1 parent 883b5b8 commit ad19805
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions core/app/models/spree/promotion.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,6 @@ def inactive?
!active?
end

def expired?
Spree::Deprecation.warn <<-WARN.squish, caller
#expired? is deprecated, and will be removed in Solidus 2.0.
Please use #inactive? instead.
WARN

inactive?
end

def activate(order:, line_item: nil, user: nil, path: nil, promotion_code: nil)
return unless self.class.order_activatable?(order)

Expand Down

0 comments on commit ad19805

Please sign in to comment.