summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsimonbrandhof <simon.brandhof@gmail.com>2012-02-07 00:20:08 +0100
committersimonbrandhof <simon.brandhof@gmail.com>2012-02-07 00:20:08 +0100
commitb9c001991f1a402132580c01576e8f04b519ef0e (patch)
treeb101daa9500b3409dbd839f9ba95ae5eccdf96a7
parentf5b64feae3f60434143ec36337adbd316b1071f3 (diff)
downloadsonarqube-b9c001991f1a402132580c01576e8f04b519ef0e.tar.gz
sonarqube-b9c001991f1a402132580c01576e8f04b519ef0e.zip
Remove dead code in metric.rb
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/models/metric.rb11
1 files changed, 0 insertions, 11 deletions
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)