Skip to content

Commit

Permalink
Removed deprecations for 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed May 25, 2016
1 parent 7a33c2f commit 607f3fe
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 133 deletions.
28 changes: 0 additions & 28 deletions app/actors/concerns/curation_concerns/manages_embargoes_actor.rb

This file was deleted.

12 changes: 0 additions & 12 deletions app/actors/curation_concerns/actors/work_actor_behavior.rb

This file was deleted.

Expand Up @@ -22,10 +22,5 @@ def uploaded_field
def modified_field
solr_name('date_modified', :stored_sortable, type: :date)
end

def search_config
ActiveSupport::Deprecation.warn("#{self.class}.search_config is deprecated and will be removed in CurationConcerns 1.0")
{ 'qf' => %w(title_tesim name_tesim), 'qt' => 'search', 'rows' => 10 }
end
end
end
Expand Up @@ -16,11 +16,6 @@ module CurationConcerns::CurationConcernController
end

module ClassMethods
def set_curation_concern_type(curation_concern_type)
Deprecation.warn self, "set_curation_concern_type is deprecated and will be removed in curation_concerns 1.0. Use self.curation_concern_type = #{curation_concern_type} instead."
self.curation_concern_type = curation_concern_type
end

def curation_concern_type=(curation_concern_type)
load_and_authorize_resource class: curation_concern_type, instance_name: :curation_concern, except: [:show, :file_manager]
self._curation_concern_type = curation_concern_type
Expand Down
1 change: 0 additions & 1 deletion app/models/concerns/curation_concerns/collection.rb
@@ -1,7 +1,6 @@
module CurationConcerns
module Collection
extend ActiveSupport::Concern
extend Deprecation
include Hydra::WithDepositor # for access to apply_depositor_metadata
include Hydra::AccessControls::Permissions
include CurationConcerns::RequiredMetadata
Expand Down
7 changes: 0 additions & 7 deletions app/presenters/curation_concerns/work_show_presenter.rb
Expand Up @@ -53,13 +53,6 @@ def work_presenters
@work_presenters ||= member_presenters(ordered_ids - file_set_ids, work_presenter_class)
end

# @deprecated
# @return [Array<FileSetPresenter>] presenters for the orderd_members that are FileSets
def file_presenters
Deprecation.warn WorkShowPresenter, "file_presenters is deprecated and will be removed in CurationConcerns 1.0. Use file_set_presenters or member_presenters instead."
member_presenters
end

# @param [Array<String>] ids a list of ids to build presenters for
# @param [Class] presenter_class the type of presenter to build
# @return [Array<presenter_class>] presenters for the ordered_members (not filtered by class)
Expand Down
10 changes: 0 additions & 10 deletions app/search_builders/curation_concerns/search_builder.rb

This file was deleted.

1 change: 0 additions & 1 deletion lib/curation_concerns/configuration.rb
@@ -1,7 +1,6 @@
require 'curation_concerns/callbacks'

module CurationConcerns
extend Deprecation
class << self
attr_accessor :config
end
Expand Down
11 changes: 0 additions & 11 deletions spec/presenters/curation_concerns/work_show_presenter_spec.rb
Expand Up @@ -51,17 +51,6 @@
end
end

describe "#file_presenters" do
let(:obj) { create(:work_with_ordered_files) }
let(:attributes) { obj.to_solr }

it "displays them in order" do
expect(obj.ordered_member_ids).not_to eq obj.member_ids
expect(Deprecation).to receive(:warn)
expect(presenter.file_presenters.map(&:id)).to eq obj.ordered_member_ids
end
end

describe "#work_presenters" do
let(:obj) { create(:work_with_file_and_work) }
let(:attributes) { obj.to_solr }
Expand Down
53 changes: 0 additions & 53 deletions spec/search_builders/curation_concerns/search_builder_spec.rb

This file was deleted.

0 comments on commit 607f3fe

Please sign in to comment.