From bcb87dbb92555f96a6ef0e9eab550bcdfec4d2fa Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Wed, 17 Jun 2015 22:03:47 +0200 Subject: [PATCH] Removed debug code. --- .../java/com/nutomic/syncthingandroid/syncthing/RestApi.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/main/java/com/nutomic/syncthingandroid/syncthing/RestApi.java b/src/main/java/com/nutomic/syncthingandroid/syncthing/RestApi.java index 8c372b51..9547eed9 100644 --- a/src/main/java/com/nutomic/syncthingandroid/syncthing/RestApi.java +++ b/src/main/java/com/nutomic/syncthingandroid/syncthing/RestApi.java @@ -576,11 +576,6 @@ public class RestApi implements SyncthingService.OnWebGuiAvailableListener, long bytes = bits / 8; if (bytes <= 0) return "0 " + units[0]; int digitGroups = (int) (Math.log10(bytes) / Math.log10(1024)); - if (digitGroups < 0 || digitGroups > 4) - throw new ArrayIndexOutOfBoundsException("bits=" + Long.toString(bits) + - ", bytes=" + Long.toString(bytes) + - " (int) digitGroups=" + Integer.toString(digitGroups) + - " (double) digitGroups=" + Double.toString(Math.log10(bytes) / Math.log10(1024))); return new DecimalFormat("#,##0.#") .format(bytes / Math.pow(1024, digitGroups)) + " " + units[digitGroups]; }