File tree Expand file tree Collapse file tree 3 files changed +0
-22
lines changed
src/main/java/com/cleanroommc/modularui Expand file tree Collapse file tree 3 files changed +0
-22
lines changed Original file line number Diff line number Diff line change @@ -178,15 +178,5 @@ public DrawableWidget(IDrawable drawable) {
178178 public void draw (ModularGuiContext context , WidgetTheme widgetTheme ) {
179179 this .drawable .drawAtZero (context , getArea (), widgetTheme );
180180 }
181-
182- @ Override
183- public boolean equals (Object obj ) {
184- if (obj instanceof IDrawable drawable )
185- return this .drawable == drawable ;
186- else if (obj instanceof DrawableWidget drawableWidget )
187- return this .drawable == drawableWidget .drawable ;
188-
189- return false ;
190- }
191181 }
192182}
Original file line number Diff line number Diff line change @@ -44,13 +44,6 @@ public String toString() {
4444 return getFormatted ();
4545 }
4646
47- @ Override
48- public boolean equals (Object obj ) {
49- if (this == obj ) return true ;
50- if (!(obj instanceof IKey key )) return false ;
51- return getFormatted ().equals (key .getFormatted ());
52- }
53-
5447 @ Override
5548 public int hashCode () {
5649 throw new NotImplementedException ("Implement hashCode() in subclasses" );
Original file line number Diff line number Diff line change @@ -16,9 +16,4 @@ public DynamicKey(Supplier<String> supplier) {
1616 public String get () {
1717 return this .supplier .get ();
1818 }
19-
20- @ Override
21- public boolean equals (Object obj ) {
22- return this == obj || (obj instanceof DynamicKey dynamicKey && dynamicKey .supplier == this .supplier );
23- }
2419}
You can’t perform that action at this time.
0 commit comments