summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/gallery
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/camera/gallery')
-rw-r--r--src/com/android/camera/gallery/BaseCancelable.java13
-rw-r--r--src/com/android/camera/gallery/Image.java57
-rw-r--r--src/com/android/camera/gallery/UriImage.java4
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;
}