mirror of https://github.com/apache/cassandra
Remove unused isLocalTask method.
Patch by Lyuben Todorov, reviewed by brandonwilliams for CASSANDRA-7181
This commit is contained in:
parent
ea0c399912
commit
dceb739f32
|
|
@ -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()))
|
||||
|
|
|
|||
Loading…
Reference in New Issue