From 78d0fdab9c11e256553c8ad7404856b58a4d3985 Mon Sep 17 00:00:00 2001 From: Maurus Cuelenaere Date: Fri, 11 Mar 2011 15:46:02 +0000 Subject: Android: get rid of warnings (no functional changes) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29566 a1c6a512-1295-4272-9138-f99709370657 --- android/src/org/rockbox/Helper/RunForegroundManager.java | 1 - android/src/org/rockbox/RockboxFramebuffer.java | 7 +------ android/src/org/rockbox/RockboxKeyboardInput.java | 1 - android/src/org/rockbox/RockboxPCM.java | 3 --- android/src/org/rockbox/RockboxService.java | 7 ------- android/src/org/rockbox/RockboxYesno.java | 2 -- 6 files changed, 1 insertion(+), 20 deletions(-) diff --git a/android/src/org/rockbox/Helper/RunForegroundManager.java b/android/src/org/rockbox/Helper/RunForegroundManager.java index 67e1ef4f8f..99287c3c6a 100644 --- a/android/src/org/rockbox/Helper/RunForegroundManager.java +++ b/android/src/org/rockbox/Helper/RunForegroundManager.java @@ -1,6 +1,5 @@ package org.rockbox.Helper; -import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import org.rockbox.R; diff --git a/android/src/org/rockbox/RockboxFramebuffer.java b/android/src/org/rockbox/RockboxFramebuffer.java index a17bc90ab6..6acc5322df 100644 --- a/android/src/org/rockbox/RockboxFramebuffer.java +++ b/android/src/org/rockbox/RockboxFramebuffer.java @@ -62,7 +62,6 @@ public class RockboxFramebuffer extends SurfaceView /* second stage init; called from Rockbox with information about the * display framebuffer */ - @SuppressWarnings("unused") private void java_lcd_init(int lcd_width, int lcd_height, ByteBuffer native_fb) { btm = Bitmap.createBitmap(lcd_width, lcd_height, Bitmap.Config.RGB_565); @@ -70,7 +69,6 @@ public class RockboxFramebuffer extends SurfaceView setEnabled(true); } - @SuppressWarnings("unused") private void java_lcd_update() { SurfaceHolder holder = getHolder(); @@ -83,7 +81,6 @@ public class RockboxFramebuffer extends SurfaceView holder.unlockCanvasAndPost(c); } - @SuppressWarnings("unused") private void java_lcd_update_rect(int x, int y, int width, int height) { SurfaceHolder holder = getHolder(); @@ -99,7 +96,6 @@ public class RockboxFramebuffer extends SurfaceView holder.unlockCanvasAndPost(c); } - @SuppressWarnings("unused") private void LOG(CharSequence text) { Log.d("Rockbox", (String) text); @@ -135,13 +131,12 @@ public class RockboxFramebuffer extends SurfaceView return buttonHandler(keyCode, false); } - @SuppressWarnings("unused") private int getDpi() { return metrics.densityDpi; } - @SuppressWarnings("unused") + private int getScrollThreshold() { return view_config.getScaledTouchSlop(); diff --git a/android/src/org/rockbox/RockboxKeyboardInput.java b/android/src/org/rockbox/RockboxKeyboardInput.java index 9cb5683a57..107b72ddae 100644 --- a/android/src/org/rockbox/RockboxKeyboardInput.java +++ b/android/src/org/rockbox/RockboxKeyboardInput.java @@ -72,7 +72,6 @@ public class RockboxKeyboardInput private native void put_result(boolean accepted, String new_string); - @SuppressWarnings("unused") public boolean is_usable() { return RockboxService.get_instance().get_activity() != null; diff --git a/android/src/org/rockbox/RockboxPCM.java b/android/src/org/rockbox/RockboxPCM.java index 1ff35f7b68..252fcf6802 100644 --- a/android/src/org/rockbox/RockboxPCM.java +++ b/android/src/org/rockbox/RockboxPCM.java @@ -27,7 +27,6 @@ import android.content.Intent; import android.media.AudioFormat; import android.media.AudioManager; import android.media.AudioTrack; -import android.net.Uri; import android.os.Handler; import android.os.HandlerThread; import android.os.Process; @@ -78,7 +77,6 @@ public class RockboxPCM extends AudioTrack return (frames*4); } - @SuppressWarnings("unused") private void play_pause(boolean pause) { RockboxService service = RockboxService.get_instance(); @@ -130,7 +128,6 @@ public class RockboxPCM extends AudioTrack RockboxService.get_instance().stopForeground(); } - @SuppressWarnings("unused") private void set_volume(int volume) { /* volume comes from 0..-990 from Rockbox */ diff --git a/android/src/org/rockbox/RockboxService.java b/android/src/org/rockbox/RockboxService.java index c474044c0b..3d7d7908c0 100644 --- a/android/src/org/rockbox/RockboxService.java +++ b/android/src/org/rockbox/RockboxService.java @@ -24,7 +24,6 @@ package org.rockbox; import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.File; -import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.OutputStreamWriter; import java.util.Enumeration; @@ -68,7 +67,6 @@ public class RockboxService extends Service private BroadcastReceiver batt_monitor; private RunForegroundManager fg_runner; private MediaButtonReceiver mMediaButtonReceiver; - @SuppressWarnings("unused") private int battery_level; private ResultReceiver resultReceiver; @@ -302,11 +300,6 @@ public class RockboxService extends Service } - @SuppressWarnings("unused") - /* - * Sets up the battery monitor which receives the battery level - * about each 30 seconds - */ private void initBatteryMonitor() { itf = new IntentFilter(Intent.ACTION_BATTERY_CHANGED); diff --git a/android/src/org/rockbox/RockboxYesno.java b/android/src/org/rockbox/RockboxYesno.java index df8c54b7d9..f770f1c7e2 100644 --- a/android/src/org/rockbox/RockboxYesno.java +++ b/android/src/org/rockbox/RockboxYesno.java @@ -27,7 +27,6 @@ import android.content.DialogInterface; public class RockboxYesno { - @SuppressWarnings("unused") private void yesno_display(final String text, final String yes, final String no) { final Activity c = RockboxService.get_instance().get_activity(); @@ -59,7 +58,6 @@ public class RockboxYesno }); } - @SuppressWarnings("unused") private boolean is_usable() { return RockboxService.get_instance().get_activity() != null; -- cgit v1.2.3