From: Niels Erik G. Nielsen Date: Tue, 9 Apr 2013 21:20:44 +0000 (-0400) Subject: Cleans up obsolete methods X-Git-Tag: v0.0.7~183 X-Git-Url: http://sru.miketaylor.org.uk/?a=commitdiff_plain;h=cb3fd709780895b5fc2f8fb16cb4b0b3744850a0;p=mkjsf-moved-to-github.git Cleans up obsolete methods --- 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());