From 4b7c58487ee5b1e5a61d8043f936d129939a464c Mon Sep 17 00:00:00 2001 From: Michael Stack Date: Tue, 18 Feb 2014 18:40:01 +0000 Subject: [PATCH] HBASE-10564 HRegionServer.nextLong should be removed since it's not used anywhere, or should be used somewhere it meant to git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1569467 13f79535-47bb-0310-9956-ffa450edef68 --- .../hadoop/hbase/regionserver/HRegionServer.java | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java index d097f46168f..ea397917bd4 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java @@ -2791,22 +2791,6 @@ public class HRegionServer implements ClientProtos.ClientService.BlockingInterfa return scannerId; } - /** - * Generate a random positive long number - * - * @return a random positive long number - */ - protected long nextLong() { - long n = rand.nextLong(); - if (n == 0) { - return nextLong(); - } - if (n < 0) { - n = -n; - } - return n; - } - // Start Client methods /**