Skip to content

Commit

Permalink
Remove counter logic and remove metrics from getWeight()
Browse files Browse the repository at this point in the history
  • Loading branch information
temawi committed Apr 26, 2024
1 parent 9488f43 commit 11b8f82
Show file tree
Hide file tree
Showing 6 changed files with 147 additions and 347 deletions.
11 changes: 0 additions & 11 deletions api/src/main/java/io/grpc/MetricInstrumentRegistry.java
Expand Up @@ -16,7 +16,6 @@

package io.grpc;

import com.google.common.annotations.VisibleForTesting;
import java.util.Collections;
import java.util.List;
import java.util.Set;
Expand Down Expand Up @@ -47,16 +46,6 @@ public static synchronized MetricInstrumentRegistry getDefaultRegistry() {
return instance;
}

/**
* Allows the registry to be reset from unit tests.
*/
@VisibleForTesting
public static synchronized void reset() {
if (instance != null) {
instance = new MetricInstrumentRegistry();
}
}

/**
* Returns a list of registered metric instruments.
*/
Expand Down
101 changes: 0 additions & 101 deletions api/src/testFixtures/java/io/grpc/FakeMetricRecorder.java

This file was deleted.

64 changes: 0 additions & 64 deletions core/src/main/java/io/grpc/internal/MetricLongCounter.java

This file was deleted.

75 changes: 0 additions & 75 deletions core/src/test/java/io/grpc/internal/MetricLongCounterTest.java

This file was deleted.

0 comments on commit 11b8f82

Please sign in to comment.