From b9c001991f1a402132580c01576e8f04b519ef0e Mon Sep 17 00:00:00 2001 From: simonbrandhof Date: Tue, 7 Feb 2012 00:20:08 +0100 Subject: [PATCH] Remove dead code in metric.rb --- .../src/main/webapp/WEB-INF/app/models/metric.rb | 11 ----------- 1 file changed, 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) -- 2.39.5