Skip to content

Commit

Permalink
chore: remove getDefaultBound and setCallback from NoopMetric (open-t…
Browse files Browse the repository at this point in the history
  • Loading branch information
mayurkale22 authored Mar 25, 2020
1 parent 8934318 commit e8bb3f0
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions packages/opentelemetry-api/src/metrics/NoopMeter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,6 @@ export class NoopMetric<T> implements Metric<T> {
return this._instrument;
}

/**
* Returns a Bound Instrument for a metric with all labels not set.
*/
getDefaultBound(): T {
return this._instrument;
}

/**
* Removes the Binding from the metric, if it is present.
* @param labels the canonicalized LabelSet used to associate with this
Expand All @@ -99,10 +92,6 @@ export class NoopMetric<T> implements Metric<T> {
clear(): void {
return;
}

setCallback(fn: () => void): void {
return;
}
}

export class NoopCounterMetric extends NoopMetric<BoundCounter>
Expand Down

0 comments on commit e8bb3f0

Please sign in to comment.