From 5f039073a239fc8ebf94238c3dce24dc1cce865b Mon Sep 17 00:00:00 2001 From: Chia-chi Yeh Date: Mon, 20 Dec 2010 18:04:53 +0800 Subject: Cleanup: Remove MenuHelper.closeSilently(). Change-Id: I449a10104615c402dbd36d615e845185063a9660 --- src/com/android/camera/MenuHelper.java | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/com/android/camera/MenuHelper.java') diff --git a/src/com/android/camera/MenuHelper.java b/src/com/android/camera/MenuHelper.java index a90726b..39fd0b2 100644 --- a/src/com/android/camera/MenuHelper.java +++ b/src/com/android/camera/MenuHelper.java @@ -74,16 +74,6 @@ public class MenuHelper { private static final String CAMERA_CLASS = "com.android.camera.Camera"; private static final String VIDEO_CAMERA_CLASS = "com.android.camera.VideoCamera"; - public static void closeSilently(Closeable c) { - if (c != null) { - try { - c.close(); - } catch (Throwable e) { - // ignore - } - } - } - public static void confirmAction(Context context, String title, String message, final Runnable action) { OnClickListener listener = new OnClickListener() { -- cgit v1.1