diff options
author | Chih-Chung Chang <chihchung@google.com> | 2009-08-06 14:33:30 +0800 |
---|---|---|
committer | Chih-Chung Chang <chihchung@google.com> | 2009-08-10 17:07:34 +0800 |
commit | 382b384ec2cd948a82fe42294b18e4ec630bbdf6 (patch) | |
tree | 7b46e9b728be5dfcef00d94f16953c3c5487b9f4 /src/com/android/camera/gallery | |
parent | 1d5ec3cba971ecb2d49fef0640a221a30c707e49 (diff) | |
download | packages_apps_LegacyCamera-382b384ec2cd948a82fe42294b18e4ec630bbdf6.zip packages_apps_LegacyCamera-382b384ec2cd948a82fe42294b18e4ec630bbdf6.tar.gz packages_apps_LegacyCamera-382b384ec2cd948a82fe42294b18e4ec630bbdf6.tar.bz2 |
Removed unused resources and code. See 2036961: build size too large.
Diffstat (limited to 'src/com/android/camera/gallery')
-rw-r--r-- | src/com/android/camera/gallery/BaseCancelable.java | 13 | ||||
-rw-r--r-- | src/com/android/camera/gallery/Image.java | 57 | ||||
-rw-r--r-- | src/com/android/camera/gallery/UriImage.java | 4 |
3 files changed, 0 insertions, 74 deletions
diff --git a/src/com/android/camera/gallery/BaseCancelable.java b/src/com/android/camera/gallery/BaseCancelable.java index fd9779f..4fde291 100644 --- a/src/com/android/camera/gallery/BaseCancelable.java +++ b/src/com/android/camera/gallery/BaseCancelable.java @@ -52,12 +52,6 @@ public abstract class BaseCancelable<T> implements Cancelable<T> { protected abstract T execute() throws Exception; - protected synchronized void interruptNow() { - if (isInStates(STATE_CANCELING | STATE_EXECUTING)) { - mThread.interrupt(); - } - } - /** * Frees the result (which is not null) when the task has been canceled. */ @@ -142,13 +136,6 @@ public abstract class BaseCancelable<T> implements Cancelable<T> { } /** - * Whether the task's has been requested for cancel. - */ - protected synchronized boolean isCanceling() { - return mState == STATE_CANCELING; - } - - /** * Runs a <code>Cancelable</code> subtask. This method is helpful, if the * task can be composed of several cancelable tasks. By using this function, * it will pass <code>requestCancel</code> message to those subtasks. diff --git a/src/com/android/camera/gallery/Image.java b/src/com/android/camera/gallery/Image.java index 437c741..aab9545 100644 --- a/src/com/android/camera/gallery/Image.java +++ b/src/com/android/camera/gallery/Image.java @@ -84,52 +84,6 @@ public class Image extends BaseImage implements IImage { return Bitmap.CompressFormat.JPEG; } - /** - * Does not replace the tag if already there. Otherwise, adds to the EXIF - * tags. - * - * @param tag - * @param value - */ - public void addExifTag(String tag, String value) { - if (mExifData == null) { - loadExifData(); - } - // If the key is already there, ignore it. - if (!mExifData.containsKey(tag)) { - mExifData.put(tag, value); - } - } - - /** - * Returns the value of the EXIF tag as an integer. - * - * @param tag - */ - public int getExifTagInt(String tag, int defaultValue) { - String tagValue = getExifTag(tag); - try { - if (tagValue != null) { - return Integer.parseInt(tagValue); - } - } catch (NumberFormatException ex) { - // Simply return defaultValue if exception is thrown. - Log.v(TAG, ex.toString()); - } - return defaultValue; - } - - /** - * Return the value of the EXIF tag as a String. It's caller's - * responsibility to check nullity. - */ - public String getExifTag(String tag) { - if (mExifData == null) { - loadExifData(); - } - return mExifData.get(tag); - } - public boolean isReadonly() { String mimeType = getMimeType(); return !"image/jpeg".equals(mimeType) && !"image/png".equals(mimeType); @@ -140,17 +94,6 @@ public class Image extends BaseImage implements IImage { } /** - * Remove tag if already there. Otherwise, does nothing. - * @param tag - */ - public void removeExifTag(String tag) { - if (mExifData == null) { - loadExifData(); - } - mExifData.remove(tag); - } - - /** * Replaces the tag if already there. Otherwise, adds to the exif tags. * @param tag * @param value diff --git a/src/com/android/camera/gallery/UriImage.java b/src/com/android/camera/gallery/UriImage.java index eb61e8e..a53dd79 100644 --- a/src/com/android/camera/gallery/UriImage.java +++ b/src/com/android/camera/gallery/UriImage.java @@ -169,10 +169,6 @@ class UriImage implements IImage { return 0; } - public int getRow() { - return 0; - } - public boolean isReadonly() { return true; } |