]> source.dussan.org Git - sonarqube.git/commitdiff
Remove dead code in metric.rb
authorsimonbrandhof <simon.brandhof@gmail.com>
Mon, 6 Feb 2012 23:20:08 +0000 (00:20 +0100)
committersimonbrandhof <simon.brandhof@gmail.com>
Mon, 6 Feb 2012 23:20:08 +0000 (00:20 +0100)
sonar-server/src/main/webapp/WEB-INF/app/models/metric.rb

index b206c80a9611a99f951a13f4ec0ada3571bf9370..82776685704e3f5c4b7b04c2239bdcbfa0c7ef05 100644 (file)
@@ -220,21 +220,10 @@ class Metric < ActiveRecord::Base
     cache[key.to_s]
   end
 
-  def self.by_names(names)
-    metrics = names.map do |name|
-      by_name(name)
-    end
-    metrics
-  end
-
   def self.by_domain(domain, translate=true)
     all.select{|metric| metric.domain(translate)==domain}.sort
   end
 
-  def self.major_metrics_id
-    all.collect {|m| m.id}
-  end
-
   def self.clear_cache
     Caches.clear(CACHE_KEY)
     Caches.clear(I18N_DOMAIN_CACHE_KEY)