Skip to content

Commit

Permalink
Remove unused methods
Browse files Browse the repository at this point in the history
  • Loading branch information
hmusum committed Jan 23, 2025
1 parent 028ed29 commit 3145c83
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ public enum Environment {
/** Returns whether this environment is production (prod) */
public boolean isProduction() { return this == prod; }

/** Returns whether this environment can exist in multiple regions. @deprecated they all are */
@Deprecated // TODO: Remove after June 2023
public boolean isMultiRegion() { return true; }

/** Returns the prod environment. This is useful for non-hosted properties where we just need any consistent value */
public static Environment defaultEnvironment() { return prod; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,18 +111,13 @@ public Flavor with(NodeResources resources) {

public Type getType() { return type; }

/** Convenience, returns getType() == Type.DOCKER_CONTAINER */
// TODO: Remove after December 2022
public boolean isDocker() { return type == Type.DOCKER_CONTAINER; }

@Override
public int hashCode() { return Objects.hash(name, flavorOverrides); }

@Override
public boolean equals(Object o) {
if (o == this) return true;
if ( ! (o instanceof Flavor)) return false;
Flavor other = (Flavor)o;
if ( ! (o instanceof Flavor other)) return false;
if (configured)
return Objects.equals(this.name, other.name) &&
Objects.equals(this.flavorOverrides, other.flavorOverrides);
Expand Down

0 comments on commit 3145c83

Please sign in to comment.