Bug 1305577 - Remove the unused function KeyedScalar::SetMaximum r?gfritzsche
MozReview-Commit-ID: DhCY8gMo04S
--- a/toolkit/components/telemetry/TelemetryScalar.cpp
+++ b/toolkit/components/telemetry/TelemetryScalar.cpp
@@ -615,29 +615,16 @@ KeyedScalar::AddValue(const nsAString& a
if (sr != ScalarResult::Ok) {
MOZ_ASSERT(false, "Key too long or too many keys are recorded in the scalar.");
return;
}
return scalar->AddValue(aValue);
}
-void
-KeyedScalar::SetMaximum(const nsAString& aKey, uint32_t aValue)
-{
- ScalarBase* scalar = nullptr;
- ScalarResult sr = GetScalarForKey(aKey, &scalar);
- if (sr != ScalarResult::Ok) {
- MOZ_ASSERT(false, "Key too long or too many keys are recorded in the scalar.");
- return;
- }
-
- return scalar->SetMaximum(aValue);
-}
-
/**
* Get a key-value array with the values for the Keyed Scalar.
* @param aValue The array that will hold the key-value pairs.
* @return {nsresult} NS_OK or an error value as reported by the
* the specific scalar objects implementations (e.g.
* ScalarUnsigned).
*/
nsresult