aboutsummaryrefslogtreecommitdiffstats
path: root/common/src/com/android/inputmethod/latin
diff options
context:
space:
mode:
authorJatin Matani <jatinm@google.com>2015-07-09 11:50:10 -0700
committerJatin Matani <jatinm@google.com>2015-07-09 11:50:10 -0700
commitd711426a87ed131c527beb8f7a9160daa14d1f94 (patch)
tree156318d1e7602a679e0bb7d9834512a17995ea14 /common/src/com/android/inputmethod/latin
parent8c2591eec80dbe44158b1613cd96056057a41139 (diff)
downloadlatinime-d711426a87ed131c527beb8f7a9160daa14d1f94.tar.gz
latinime-d711426a87ed131c527beb8f7a9160daa14d1f94.tar.xz
latinime-d711426a87ed131c527beb8f7a9160daa14d1f94.zip
Remove android.util.Log from FileUtils
FileUtils is being used for other non android projects and hence breaks when built. Instead use the log statements at caller to record Log.e messages. Hence there is no side effect here. Bug:22042371 Change-Id: Ieb100006ff38e013bc30542637465f58bfc0f2f2
Diffstat (limited to 'common/src/com/android/inputmethod/latin')
-rw-r--r--common/src/com/android/inputmethod/latin/common/FileUtils.java9
1 files changed, 1 insertions, 8 deletions
diff --git a/common/src/com/android/inputmethod/latin/common/FileUtils.java b/common/src/com/android/inputmethod/latin/common/FileUtils.java
index 16732660c..e593c9932 100644
--- a/common/src/com/android/inputmethod/latin/common/FileUtils.java
+++ b/common/src/com/android/inputmethod/latin/common/FileUtils.java
@@ -16,8 +16,6 @@
package com.android.inputmethod.latin.common;
-import android.util.Log;
-
import java.io.File;
import java.io.FilenameFilter;
@@ -58,11 +56,6 @@ public class FileUtils {
public static boolean renameTo(final File fromFile, final File toFile) {
toFile.delete();
- final boolean success = fromFile.renameTo(toFile);
- if (!success) {
- Log.e(TAG, String.format("Failed to rename from %s to %s.",
- fromFile.getAbsoluteFile(), toFile.getAbsoluteFile()));
- }
- return success;
+ return fromFile.renameTo(toFile);
}
}