cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject svn commit: r1137773 - /cassandra/branches/cassandra-0.8/src/java/org/apache/cassandra/gms/Gossiper.java
Date Mon, 20 Jun 2011 20:50:23 GMT
Author: jbellis
Date: Mon Jun 20 20:50:23 2011
New Revision: 1137773

URL: http://svn.apache.org/viewvc?rev=1137773&view=rev
Log:
r/m unused code

Modified:
    cassandra/branches/cassandra-0.8/src/java/org/apache/cassandra/gms/Gossiper.java

Modified: cassandra/branches/cassandra-0.8/src/java/org/apache/cassandra/gms/Gossiper.java
URL: http://svn.apache.org/viewvc/cassandra/branches/cassandra-0.8/src/java/org/apache/cassandra/gms/Gossiper.java?rev=1137773&r1=1137772&r2=1137773&view=diff
==============================================================================
--- cassandra/branches/cassandra-0.8/src/java/org/apache/cassandra/gms/Gossiper.java (original)
+++ cassandra/branches/cassandra-0.8/src/java/org/apache/cassandra/gms/Gossiper.java Mon Jun
20 20:50:23 2011
@@ -190,7 +190,7 @@ public class Gossiper implements IFailur
     
     public void setVersion(InetAddress address, int version)
     {
-        Integer old = versions.put(address, version);
+        versions.put(address, version);
     }
     
     public Integer getVersion(InetAddress address)
@@ -717,7 +717,6 @@ public class Gossiper implements IFailur
     {
         // don't assert here, since if the node restarts the version will go back to zero
         int oldVersion = localState.getHeartBeatState().getHeartBeatVersion();
-        Map<ApplicationState, VersionedValue> localAppStateMap = localState.getApplicationStateMap();
 
         localState.setHeartBeatState(remoteState.getHeartBeatState());
         if (logger.isTraceEnabled())



Mime
View raw message