Skip to content

Commit

Permalink
remove duplicated id_to_acronym method
Browse files Browse the repository at this point in the history
  • Loading branch information
Bilelkihal committed Jan 3, 2025
1 parent 4627639 commit aa41602
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions app/helpers/ontologies_helper.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'iso-639'
module OntologiesHelper

include ApplicationHelper
REST_URI = $REST_URL
API_KEY = $API_KEY
LANGUAGE_FILTERABLE_SECTIONS = %w[classes schemes collections instances properties].freeze
Expand Down Expand Up @@ -801,10 +801,6 @@ def submission_languages(submission = @submission)
Array(submission&.naturalLanguage).map { |natural_language| natural_language["iso639"] && natural_language.split('/').last }.compact
end

def id_to_acronym(id)
id.split('/').last
end

def browse_taxonomy_tooltip(taxonomy_type)
return nil unless taxonomy_type.eql?("categories") || taxonomy_type.eql?("groups")

Expand Down

0 comments on commit aa41602

Please sign in to comment.