Skip to content

Commit 1bc4f15

Browse files
Remove unused method in ORCA server interceptor
1 parent 575cdb8 commit 1bc4f15

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

xds/src/main/java/io/grpc/xds/orca/OrcaMetricReportingServerInterceptor.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
import io.grpc.services.InternalMetricRecorder;
3535
import io.grpc.services.MetricRecorder;
3636
import io.grpc.services.MetricReport;
37-
import javax.annotation.Nullable;
3837

3938
/**
4039
* A {@link ServerInterceptor} that intercepts a {@link ServerCall} by running server-side RPC
@@ -63,14 +62,6 @@ public final class OrcaMetricReportingServerInterceptor implements ServerInterce
6362
OrcaMetricReportingServerInterceptor.instance = this;
6463
}
6564

66-
/**
67-
* Returns the server interceptor if created, otherwise {@code null}.
68-
*/
69-
@Nullable
70-
public static OrcaMetricReportingServerInterceptor getInstanceIfCreated() {
71-
return instance;
72-
}
73-
7465
public static OrcaMetricReportingServerInterceptor getOrCreateInstance(
7566
MetricRecorder metricRecorder) {
7667
if (instance == null) {

0 commit comments

Comments
 (0)