Skip to content

Commit

Permalink
Remove string shorthands for .sort()
Browse files Browse the repository at this point in the history
  • Loading branch information
flyingsilverfin committed May 22, 2023
1 parent 6e6d9a2 commit ff758c5
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions java/query/builder/Sortable.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import com.vaticle.typedb.common.collection.Pair;
import com.vaticle.typeql.lang.common.TypeQLArg;
import com.vaticle.typeql.lang.common.exception.TypeQLException;
import com.vaticle.typeql.lang.pattern.variable.UnboundConceptVariable;
import com.vaticle.typeql.lang.pattern.variable.UnboundVariable;

import java.util.ArrayList;
Expand All @@ -40,13 +39,6 @@

public interface Sortable<S, O, L> {

default S sort(String var, String... vars) {
List<Pair<UnboundVariable, TypeQLArg.Order>> pairs = new ArrayList<>();
pairs.add(new Pair<>(UnboundConceptVariable.named(var), null));
for (String v : vars) pairs.add(new Pair<>(UnboundConceptVariable.named(v), null));
return sort(pairs);
}

default S sort(UnboundVariable var, UnboundVariable... vars) {
List<Pair<UnboundVariable, TypeQLArg.Order>> pairs = new ArrayList<>();
pairs.add(new Pair<>(var, null));
Expand Down

0 comments on commit ff758c5

Please sign in to comment.