From cb3fd709780895b5fc2f8fb16cb4b0b3744850a0 Mon Sep 17 00:00:00 2001 From: "Niels Erik G. Nielsen" Date: Tue, 9 Apr 2013 17:20:44 -0400 Subject: [PATCH] Cleans up obsolete methods --- .../pz2utils4jsf/pazpar2/state/QueryState.java | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/src/main/java/com/indexdata/pz2utils4jsf/pazpar2/state/QueryState.java b/src/main/java/com/indexdata/pz2utils4jsf/pazpar2/state/QueryState.java index 5f8ef23..89c8888 100644 --- a/src/main/java/com/indexdata/pz2utils4jsf/pazpar2/state/QueryState.java +++ b/src/main/java/com/indexdata/pz2utils4jsf/pazpar2/state/QueryState.java @@ -118,24 +118,11 @@ public class QueryState implements Serializable { return key; } } - - public void setKey(String key) { - logger.debug("Setting key on demand to: " + key); - this.key = key; - } - + public String toString () { return pz2commands.toString(); } - - public boolean searchEquals(Object otherQueryState) { - if (otherQueryState instanceof QueryState) { - return getCommand("search").equals(((QueryState) otherQueryState).getCommand("search")); - } else { - return false; - } - } - + public boolean equals (Object otherQueryState) { if (otherQueryState instanceof QueryState) { return this.toString().equals(otherQueryState.toString()); -- 1.7.10.4