diff options
Diffstat (limited to 'server/sonar-web/src/main/webapp/WEB-INF/app/models/metric.rb')
-rw-r--r-- | server/sonar-web/src/main/webapp/WEB-INF/app/models/metric.rb | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/models/metric.rb b/server/sonar-web/src/main/webapp/WEB-INF/app/models/metric.rb index 204c8f49b83..45faacb4800 100644 --- a/server/sonar-web/src/main/webapp/WEB-INF/app/models/metric.rb +++ b/server/sonar-web/src/main/webapp/WEB-INF/app/models/metric.rb @@ -244,21 +244,6 @@ class Metric < ActiveRecord::Base result.compact.uniq end - def self.ids_from_keys(keys_array) - keys_array.collect{ |key| Metric.by_name(key).id if Metric.by_name(key) } - end - - def self.delete_with_manual_measures(id) - ManualMeasure.delete_all(["metric_id = ?", id]) - self.deactivate(id) - end - - def self.deactivate(id) - metric = by_id(id) - metric.enabled = false - metric.save! - end - def to_hash_json(options={}) return {'key' => name, 'name' => short_name, 'description' => description, 'domain' => domain, 'qualitative' => qualitative, 'user_managed' => self.user_managed, |