Skip to content
This repository has been archived by the owner on May 11, 2022. It is now read-only.

Commit

Permalink
Remove unused configuration setter
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeer committed Dec 8, 2016
1 parent 2605bb9 commit 5f5af75
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions lib/dor/datastreams/workflow_definition_ds.rb
Expand Up @@ -55,21 +55,13 @@ def repo
end

def configuration
result = ActiveSupport::OrderedHash.new
result = {}
result['repository'] = repo
result['name'] = name
processes.each { |process| result[process.name] = process.to_hash }
result
end

def configuration=(hash)
self.ng_xml = Nokogiri::XML(%(<workflow-def id="#{hash['name']}" repository="#{hash['repository']}"/>))
i = 0
hash.each_pair do |k, v|
add_process(v.merge({:name => k, :sequence => i += 1})) if v.is_a?(Hash)
end
end

# Creates the xml used by Dor::WorkflowService#create_workflow
# @return [String] An object's initial workflow as defined by the <workflow-def> in content
def initial_workflow
Expand Down

0 comments on commit 5f5af75

Please sign in to comment.