Remove dead code
diff --git a/src/main/java/com/google/code/gossip/GossipMember.java b/src/main/java/com/google/code/gossip/GossipMember.java
index 56a5f44..314b5b7 100644
--- a/src/main/java/com/google/code/gossip/GossipMember.java
+++ b/src/main/java/com/google/code/gossip/GossipMember.java
@@ -29,16 +29,7 @@
*/
public abstract class GossipMember implements Comparable<GossipMember> {
- public static final String JSON_HOST = "host";
-
- public static final String JSON_PORT = "port";
-
- public static final String JSON_HEARTBEAT = "heartbeat";
-
- public static final String JSON_ID = "id";
-
- public static final String JSON_CLUSTER = "cluster";
-
+
protected final String host;
protected final int port;
@@ -174,25 +165,6 @@
&& getClusterName().equals(((LocalGossipMember) obj).getClusterName());
}
- /**
- * Get the JSONObject which is the JSON representation of this GossipMember.
- *
- * @return The JSONObject of this GossipMember.
- */
- public JSONObject toJSONObject() {
- try {
- JSONObject jsonObject = new JSONObject();
- jsonObject.put(JSON_CLUSTER, clusterName);
- jsonObject.put(JSON_HOST, host);
- jsonObject.put(JSON_PORT, port);
- jsonObject.put(JSON_ID, id);
- jsonObject.put(JSON_HEARTBEAT, heartbeat);
- return jsonObject;
- } catch (JSONException e) {
- throw new RuntimeException(e);
- }
- }
-
public int compareTo(GossipMember other) {
return this.getAddress().compareTo(other.getAddress());
}