Skip to content

Commit

Permalink
Merge pull request #1461 from jordan-brough/remove-deprecated-code
Browse files Browse the repository at this point in the history
Remove deprecated code
  • Loading branch information
jordan-brough committed Sep 22, 2016
2 parents 1b1259e + ca30c1c commit 0eeb120
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@
* Removed deprecated method `Spree::TaxRate.adjust` (not to be confused with
Spree::TaxRate#adjust) in favor of `Spree::Tax::OrderAdjuster`.

https://github.com/solidusio/solidus/pull/1462

* Removed deprecated method `Promotion#expired?` in favor of
`Promotion#inactive?`

https://github.com/solidusio/solidus/pull/1461

## Solidus 2.0.0 (unreleased)

* Upgrade to rails 5.0
Expand Down
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 0eeb120

Please sign in to comment.