Skip to content

Commit 84eec7b

Browse files
committed
remove not used code
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
1 parent 68ca625 commit 84eec7b

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/reconciler/PrimaryUpdateAndCacheUtils.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -117,14 +117,6 @@ public static <P extends HasMetadata> P patchAndCacheStatus(
117117
return updatedResource;
118118
}
119119

120-
private static <P extends HasMetadata> void checkResourceVersionPresent(P primary) {
121-
if (primary.getMetadata().getResourceVersion() == null) {
122-
throw new IllegalStateException(
123-
"Primary resource version is null, it is expected to set resource version for updates for caching. Name: %s namespace: %s"
124-
.formatted(primary.getMetadata().getName(), primary.getMetadata().getNamespace()));
125-
}
126-
}
127-
128120
private static <P extends HasMetadata> void logWarnIfResourceVersionPresent(P primary) {
129121
if (primary.getMetadata().getResourceVersion() != null) {
130122
log.warn(

0 commit comments

Comments
 (0)