Remove unused activeValue getter

This commit is contained in:
James Brooks
2018-07-02 17:41:46 +01:00
parent 51d0d5a325
commit c006b7d6ef

View File

@@ -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.
*