summaryrefslogtreecommitdiff
path: root/same/src/main
diff options
context:
space:
mode:
authorKjetil Ørbekk <kjetil.orbekk@gmail.com>2012-03-06 14:19:05 +0100
committerKjetil Ørbekk <kjetil.orbekk@gmail.com>2012-03-06 14:19:05 +0100
commitdef938c015f0712cb129ca52f844360f9cb7ea6b (patch)
treea8c2e2fbc844cf4f4c268faf0e1700c12deb060f /same/src/main
parent3e2805de493e5d12eea025ae622cf8c635de0b54 (diff)
Remove old Client code.
Diffstat (limited to 'same/src/main')
-rw-r--r--same/src/main/java/com/orbekk/same/Client.java25
1 files changed, 0 insertions, 25 deletions
diff --git a/same/src/main/java/com/orbekk/same/Client.java b/same/src/main/java/com/orbekk/same/Client.java
index 4237fee..8401c4b 100644
--- a/same/src/main/java/com/orbekk/same/Client.java
+++ b/same/src/main/java/com/orbekk/same/Client.java
@@ -145,31 +145,6 @@ public class Client implements DiscoveryListener {
return clientInterface;
}
- String lib_get(String name) {
- return state.getDataOf(name);
- }
-
- <T> T lib_get(String name, TypeReference<T> type) {
- return state.getParsedData(name, type);
- }
-
- void lib_set(String name, String data) throws UpdateConflict {
- String masterUrl = state.getDataOf(".masterUrl");
- long revision = state.getRevision(name) + 1;
- MasterService master = connections.getMaster(masterUrl);
- try {
- boolean success = master.updateStateRequest(name, data,
- revision);
- if (!success) {
- throw new UpdateConflict("State update conflict when " +
- "updating " + name);
- }
- } catch (Exception e) {
- logger.error("Unable to contact master. Update fails.", e);
- throw new UpdateConflict("Unable to contact master. Update fails.");
- }
- }
-
public State.Component getState(String name) {
return state.getComponent(name);
}