From: simonbrandhof Date: Mon, 6 Feb 2012 23:20:08 +0000 (+0100) Subject: Remove dead code in metric.rb X-Git-Tag: 2.14~161 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b9c001991f1a402132580c01576e8f04b519ef0e;p=sonarqube.git Remove dead code in metric.rb --- diff --git a/sonar-server/src/main/webapp/WEB-INF/app/models/metric.rb b/sonar-server/src/main/webapp/WEB-INF/app/models/metric.rb index b206c80a961..82776685704 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/models/metric.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/models/metric.rb @@ -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)