Bug 1305577 - Remove the unused function KeyedScalar::SetMaximum r?gfritzsche draft
authorSylvestre Ledru <sledru@mozilla.com>
Mon, 26 Sep 2016 17:58:44 -0500
changeset 417774 1bec3c0c4338ca9cf2cd3e9066dc6a11eeb72e1e
parent 417773 b4cae9fb786b36b5974a010cb51bcbea3f960888
child 417775 68bc7a7b2f232cb060971c58bffee88ecbcca4b4
push id30497
push userbmo:sledru@mozilla.com
push dateMon, 26 Sep 2016 23:01:19 +0000
reviewersgfritzsche
bugs1305577
milestone52.0a1
Bug 1305577 - Remove the unused function KeyedScalar::SetMaximum r?gfritzsche MozReview-Commit-ID: DhCY8gMo04S
toolkit/components/telemetry/TelemetryScalar.cpp
--- 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