Skip to content

Commit

Permalink
Remove unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
martint committed Mar 23, 2024
1 parent 2382c2d commit 8f279a8
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions core/trino-main/src/main/java/io/trino/type/LikeFunctions.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,17 +73,6 @@ public static LikePattern likePattern(@SqlType("varchar") Slice pattern, @SqlTyp
}
}

public static boolean isMatchAllPattern(Slice pattern)
{
for (int i = 0; i < pattern.length(); i++) {
int current = pattern.getByte(i);
if (current != '%') {
return false;
}
}
return true;
}

public static boolean isLikePattern(Slice pattern, Optional<Slice> escape)
{
return patternConstantPrefixBytes(pattern, escape) < pattern.length();
Expand Down

0 comments on commit 8f279a8

Please sign in to comment.