diff --git a/error-prone-contrib/src/main/java/tech/picnic/errorprone/refastertemplates/ImmutableMapTemplates.java b/error-prone-contrib/src/main/java/tech/picnic/errorprone/refastertemplates/ImmutableMapTemplates.java index ea707fab776..8b9ddf15ef5 100644 --- a/error-prone-contrib/src/main/java/tech/picnic/errorprone/refastertemplates/ImmutableMapTemplates.java +++ b/error-prone-contrib/src/main/java/tech/picnic/errorprone/refastertemplates/ImmutableMapTemplates.java @@ -242,19 +242,6 @@ ImmutableMap after(Map map) { } } - /** Don't unnecessarily copy an {@link ImmutableMap}. */ - static final class ImmutableMapCopyOfImmutableMap { - @BeforeTemplate - ImmutableMap before(ImmutableMap map) { - return ImmutableMap.copyOf(map); - } - - @AfterTemplate - ImmutableMap after(ImmutableMap map) { - return map; - } - } - /** * Prefer {@link ImmutableMap#of()} over alternatives that don't communicate the immutability of * the resulting list at the type level.