mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
DO NOT MERGE - Remove Log statement from FileUtils
Change-Id: I3e2031bcf0cbdf79994b99b9473572eb3e62734d
This commit is contained in:
parent
9bad1ac33f
commit
3b0d5b75bd
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user