Skip to content

Commit 9da6bf5

Browse files
committed
refactor: remove unused methods
Signed-off-by: Chris Laprun <metacosm@gmail.com>
1 parent fd109b7 commit 9da6bf5

1 file changed

Lines changed: 0 additions & 24 deletions

File tree

  • operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing

operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/MDCUtils.java

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
import io.javaoperatorsdk.operator.processing.event.ResourceID;
2323
import io.javaoperatorsdk.operator.processing.event.source.ResourceAction;
2424

25-
@SuppressWarnings("unused")
2625
public class MDCUtils {
2726

2827
private static final String NAME = "resource.name";
@@ -58,11 +57,6 @@ public static void removeInformerEventInfo() {
5857
}
5958
}
6059

61-
public static void withMDCForEvent(
62-
HasMetadata resource, Runnable runnable, String eventSourceName) {
63-
withMDCForEvent(resource, null, runnable, eventSourceName);
64-
}
65-
6660
public static void withMDCForEvent(
6761
HasMetadata resource, ResourceAction action, Runnable runnable, String eventSourceName) {
6862
try {
@@ -73,24 +67,6 @@ public static void withMDCForEvent(
7367
}
7468
}
7569

76-
public static void withMDCForResourceID(ResourceID resourceID, Runnable runnable) {
77-
try {
78-
MDCUtils.addResourceIDInfo(resourceID);
79-
runnable.run();
80-
} finally {
81-
MDCUtils.removeResourceIDInfo();
82-
}
83-
}
84-
85-
public static void withMDCForPrimary(HasMetadata primary, Runnable runnable) {
86-
try {
87-
MDCUtils.addResourceInfo(primary);
88-
runnable.run();
89-
} finally {
90-
MDCUtils.removeResourceInfo();
91-
}
92-
}
93-
9470
public static void addResourceIDInfo(ResourceID resourceID) {
9571
if (enabled) {
9672
MDC.put(NAME, resourceID.getName());

0 commit comments

Comments
 (0)