diff --git a/toolkit/components/telemetry/Telemetry.cpp b/toolkit/components/telemetry/Telemetry.cpp index a3d255277f59..93084acb9d68 100644 --- a/toolkit/components/telemetry/Telemetry.cpp +++ b/toolkit/components/telemetry/Telemetry.cpp @@ -3969,14 +3969,6 @@ CanRecordExtended() return TelemetryImpl::CanRecordExtended(); } -base::Histogram* -GetHistogramById(ID id) -{ - Histogram *h = nullptr; - GetHistogramByEnumId(id, &h); - return h; -} - const char* GetHistogramName(Telemetry::ID id) { diff --git a/toolkit/components/telemetry/Telemetry.h b/toolkit/components/telemetry/Telemetry.h index cfdb445905f0..67b1fc793dba 100644 --- a/toolkit/components/telemetry/Telemetry.h +++ b/toolkit/components/telemetry/Telemetry.h @@ -12,10 +12,6 @@ #include "nsTArray.h" #include "nsStringGlue.h" -namespace base { - class Histogram; -} // namespace base - namespace mozilla { namespace HangMonitor { class HangAnnotations; @@ -93,18 +89,8 @@ void AccumulateTimeDelta(ID id, TimeStamp start, TimeStamp end = TimeStamp::Now( */ void SetHistogramRecordingEnabled(ID id, bool enabled); -/** - * Return a raw Histogram for direct manipulation for users who can not use Accumulate(). - */ -base::Histogram* GetHistogramById(ID id); - const char* GetHistogramName(ID id); -/** - * Return a raw histogram for keyed histograms. - */ -base::Histogram* GetKeyedHistogramById(ID id, const nsAString&); - /** * Those wrappers are needed because the VS versions we use do not support free * functions with default template arguments.