Remove dead code

Project: http://git-wip-us.apache.org/repos/asf/incubator-gossip/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-gossip/commit/8e8db1c8
Tree: http://git-wip-us.apache.org/repos/asf/incubator-gossip/tree/8e8db1c8
Diff: http://git-wip-us.apache.org/repos/asf/incubator-gossip/diff/8e8db1c8

Branch: refs/heads/master
Commit: 8e8db1c837661d3ee7314184518ecd71fcbc71aa
Parents: 3366f63
Author: Edward Capriolo <edlinuxg...@gmail.com>
Authored: Mon May 16 19:37:17 2016 -0400
Committer: Edward Capriolo <edlinuxg...@gmail.com>
Committed: Tue Jun 7 22:52:53 2016 -0400

----------------------------------------------------------------------
 .../com/google/code/gossip/GossipMember.java    | 30 +-------------------
 1 file changed, 1 insertion(+), 29 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-gossip/blob/8e8db1c8/src/main/java/com/google/code/gossip/GossipMember.java
----------------------------------------------------------------------
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 @@ import org.json.JSONObject;
  */
 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 @@ public abstract class GossipMember implements 
Comparable<GossipMember> {
             && 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());
   }

Reply via email to