Skip to content

Commit

Permalink
Remove unused SearchAttribute values
Browse files Browse the repository at this point in the history
  • Loading branch information
cketti committed Feb 14, 2025
1 parent 21ceb60 commit f54ea21
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 30 deletions.
19 changes: 0 additions & 19 deletions legacy/core/src/main/java/com/fsck/k9/search/SqlQueryBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -151,30 +151,11 @@ private static void appendExprRight(SearchCondition condition, StringBuilder que
query.append(" ");
String selectionArg = null;
switch (condition.attribute) {
case NOT_CONTAINS:
query.append("NOT ");
//$FALL-THROUGH$
case CONTAINS: {
query.append("LIKE ?");
selectionArg = "%" + value + "%";
break;
}
case NOT_STARTSWITH:
query.append("NOT ");
//$FALL-THROUGH$
case STARTSWITH: {
query.append("LIKE ?");
selectionArg = "%" + value;
break;
}
case NOT_ENDSWITH:
query.append("NOT ");
//$FALL-THROUGH$
case ENDSWITH: {
query.append("LIKE ?");
selectionArg = value + "%";
break;
}
case NOT_EQUALS: {
if (isNumberColumn(field)) {
query.append("!= ?");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,8 @@
package app.k9mail.legacy.search.api;


///////////////////////////////////////////////////////////////
// ATTRIBUTE enum
///////////////////////////////////////////////////////////////
public enum SearchAttribute {
CONTAINS,
NOT_CONTAINS,

EQUALS,
NOT_EQUALS,

STARTSWITH,
NOT_STARTSWITH,

ENDSWITH,
NOT_ENDSWITH
}

0 comments on commit f54ea21

Please sign in to comment.