cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brandonwilli...@apache.org
Subject [1/6] git commit: Remove unused isLocalTask method.
Date Wed, 07 May 2014 21:34:39 GMT
Repository: cassandra
Updated Branches:
  refs/heads/cassandra-2.0 ea0c39991 -> dceb739f3
  refs/heads/cassandra-2.1 8c58dd30e -> 311c27642
  refs/heads/trunk 66429d618 -> c37cceef5


Remove unused isLocalTask method.

Patch by Lyuben Todorov, reviewed by brandonwilliams for CASSANDRA-7181


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/dceb739f
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/dceb739f
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/dceb739f

Branch: refs/heads/cassandra-2.0
Commit: dceb739f32b7d8a8525b3af99cf51b7acdd3b7f6
Parents: ea0c399
Author: Brandon Williams <brandonwilliams@apache.org>
Authored: Wed May 7 16:30:05 2014 -0500
Committer: Brandon Williams <brandonwilliams@apache.org>
Committed: Wed May 7 16:30:05 2014 -0500

----------------------------------------------------------------------
 .../org/apache/cassandra/repair/StreamingRepairTask.java    | 9 ---------
 1 file changed, 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/dceb739f/src/java/org/apache/cassandra/repair/StreamingRepairTask.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/repair/StreamingRepairTask.java b/src/java/org/apache/cassandra/repair/StreamingRepairTask.java
index 1fd2b4f..f7203a4 100644
--- a/src/java/org/apache/cassandra/repair/StreamingRepairTask.java
+++ b/src/java/org/apache/cassandra/repair/StreamingRepairTask.java
@@ -46,15 +46,6 @@ public class StreamingRepairTask implements Runnable, StreamEventHandler
         this.request = request;
     }
 
-    /**
-     * Returns true if the task if the task can be executed locally, false if
-     * it has to be forwarded.
-     */
-    public boolean isLocalTask()
-    {
-        return request.initiator.equals(request.src);
-    }
-
     public void run()
     {
         if (request.src.equals(FBUtilities.getBroadcastAddress()))


Mime
View raw message