Skip to content

Commit

Permalink
Remove unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
fbacall committed May 14, 2024
1 parent 0340b0d commit fc037d8
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions app/models/workflow.rb
Original file line number Diff line number Diff line change
Expand Up @@ -277,16 +277,4 @@ def execution_instance_url
def self.find_by_source_url(source_url)
joins(:source_link).where('asset_links.url' => source_url)
end

def self.find_existing_version(source_url, version_name)
workflows = joins(:source_link).where('asset_links.url' => source_url)
if workflows.length == 1
workflows.first.git_versions.where(name: version_name)
elsif workflows.empty?
'None :('
else
'Too many :('
end
end

end

0 comments on commit fc037d8

Please sign in to comment.