diff options
author | Matt Windsor <mattwindsor@btinternet.com> | 2011-03-19 14:12:44 +0000 |
---|---|---|
committer | Matt Windsor <mattwindsor@btinternet.com> | 2011-03-19 14:12:44 +0000 |
commit | 410219d08abdb859315c4d6d0e0375287d64a88b (patch) | |
tree | 3d4610f6cc671147a0aec7bca573a38d6c98b58e /src/uk/org/ury/library/LibraryUtils.java | |
parent | 2efb758e7c2bd85801c76305161d9d8fa6d2be4b (diff) |
Converted protocol to JSON. Now passes its first ever unit test\!
Diffstat (limited to 'src/uk/org/ury/library/LibraryUtils.java')
-rw-r--r-- | src/uk/org/ury/library/LibraryUtils.java | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/uk/org/ury/library/LibraryUtils.java b/src/uk/org/ury/library/LibraryUtils.java index f1e41c8..474c58a 100644 --- a/src/uk/org/ury/library/LibraryUtils.java +++ b/src/uk/org/ury/library/LibraryUtils.java @@ -16,7 +16,6 @@ import uk.org.ury.database.exceptions.QueryFailureException; import uk.org.ury.library.exceptions.EmptySearchException; import uk.org.ury.library.item.LibraryItem; import uk.org.ury.library.item.LibraryItemProperty; -import uk.org.ury.server.protocol.Directive; /** @@ -153,7 +152,7 @@ public class LibraryUtils * stanzas in the response. */ - public static List<LibraryItem> +/* public static List<LibraryItem> extractItemsFromResponse (List<String> response) { List<LibraryItem> result = new ArrayList<LibraryItem> (); @@ -185,7 +184,7 @@ public class LibraryUtils } return result; - } + }*/ /** @@ -205,7 +204,7 @@ public class LibraryUtils * DatabaseItem does not use String as its data type. */ - public static LibraryItem + /*public static LibraryItem createItemFromResponse (List<String> response) { // TODO: More appropriate exceptions. @@ -239,5 +238,5 @@ public class LibraryUtils } else throw new IllegalArgumentException ("Malformed response."); - } + }*/ } |