Bug 1261063 - Part 1 - Remove public Telemetry functions that return raw histogram instances. r=chutten

Note that GetKeyedHistogramById(ID, const nsAString&) was declared, but never had an implementation.
This commit is contained in:
Georg Fritzsche 2016-05-03 18:07:44 +02:00
parent 5beacc7b4b
commit db7169cb38
2 changed files with 0 additions and 22 deletions

View File

@ -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)
{

View File

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