removed unused code

This commit is contained in:
Mariotaku Lee 2016-10-23 21:26:48 +08:00
parent e98200217a
commit 79f10da1b7
1 changed files with 3 additions and 11 deletions

View File

@ -67,7 +67,6 @@ import android.system.ErrnoException;
import android.text.TextUtils;
import android.text.format.DateFormat;
import android.text.format.DateUtils;
import android.text.format.Time;
import android.transition.Transition;
import android.transition.TransitionInflater;
import android.util.Log;
@ -497,16 +496,9 @@ public final class Utils implements Constants {
@SuppressWarnings("deprecation")
public static String formatToLongTimeString(final Context context, final long timestamp) {
if (context == null) return null;
final Time then = new Time();
then.set(timestamp);
final Time now = new Time();
now.setToNow();
int format_flags = DateUtils.FORMAT_NO_NOON_MIDNIGHT | DateUtils.FORMAT_ABBREV_ALL | DateUtils.FORMAT_CAP_AMPM;
format_flags |= DateUtils.FORMAT_SHOW_DATE | DateUtils.FORMAT_SHOW_TIME;
return DateUtils.formatDateTime(context, timestamp, format_flags);
int formatFlags = DateUtils.FORMAT_NO_NOON_MIDNIGHT | DateUtils.FORMAT_ABBREV_ALL |
DateUtils.FORMAT_CAP_AMPM | DateUtils.FORMAT_SHOW_DATE | DateUtils.FORMAT_SHOW_TIME;
return DateUtils.formatDateTime(context, timestamp, formatFlags);
}
public static boolean isComposeNowSupported(Context context) {