Skip to content

Commit

Permalink
#2863 delete some unnecessary methods overriding
Browse files Browse the repository at this point in the history
  • Loading branch information
c71n93 committed Mar 8, 2024
1 parent 0a6fa6f commit adee12e
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 30 deletions.
10 changes: 0 additions & 10 deletions eo-runtime/src/main/java/org/eolang/PhConst.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,6 @@ public PhConst(final Phi phi) {
super(phi);
}

@Override
public boolean equals(final Object obj) {
return this.origin.equals(obj);
}

@Override
public int hashCode() {
return this.origin.hashCode();
}

@Override
public String toString() {
return String.format("!%s%s", this.cached.keySet(), this.origin);
Expand Down
10 changes: 0 additions & 10 deletions eo-runtime/src/main/java/org/eolang/PhLogged.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,16 +89,6 @@ public String forma() {
return this.origin.forma();
}

@Override
public boolean equals(final Object obj) {
return this.origin.equals(obj);
}

@Override
public int hashCode() {
return this.origin.hashCode();
}

@Override
public String toString() {
return this.origin.toString();
Expand Down
10 changes: 0 additions & 10 deletions eo-runtime/src/main/java/org/eolang/PhNamed.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,6 @@ final class PhNamed extends PhDecorator {
this.name = txt;
}

@Override
public boolean equals(final Object obj) {
return this.origin.equals(obj);
}

@Override
public int hashCode() {
return this.origin.hashCode();
}

@Override
public String toString() {
return String.format("%s≡%s", this.name, this.origin.toString());
Expand Down

0 comments on commit adee12e

Please sign in to comment.