From c006b7d6ef6381efd66e3760d62137254ce85308 Mon Sep 17 00:00:00 2001 From: James Brooks Date: Mon, 2 Jul 2018 17:41:46 +0100 Subject: [PATCH] Remove unused activeValue getter --- app/Models/MetricPoint.php | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/app/Models/MetricPoint.php b/app/Models/MetricPoint.php index 9e5cdc49..34125a2f 100644 --- a/app/Models/MetricPoint.php +++ b/app/Models/MetricPoint.php @@ -81,22 +81,6 @@ class MetricPoint extends Model implements HasPresenter return $this->belongsTo(Metric::class); } - /** - * Override the value attribute. - * - * @param mixed $value - * - * @return float - */ - public function getActiveValueAttribute($value) - { - if ($this->metric->calc_type === Metric::CALC_SUM) { - return round((float) $value * $this->counter, $this->metric->places); - } - - return round((float) $value, $this->metric->places); - } - /** * Round the created at value into intervals of 30 seconds. *