From 927ba028fb7ae46ed6ac74e7422e4f1fa9cf8328 Mon Sep 17 00:00:00 2001 From: Eric House Date: Wed, 18 Jun 2014 20:24:13 -0700 Subject: [PATCH] cleanup --- .../org/eehouse/android/xw4/loc/LocUtils.java | 27 ------------------- 1 file changed, 27 deletions(-) diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/loc/LocUtils.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/loc/LocUtils.java index 3f6fce604..3d8f90c27 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/loc/LocUtils.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/loc/LocUtils.java @@ -78,7 +78,6 @@ public class LocUtils { private static Map s_xlationsBlessed = null; private static HashMap s_idsToKeys = null; private static Boolean s_enabled = null; - private static Boolean UPPER_CASE = false; private static String s_curLocale; private static WeakReference s_latestMenuRef; private static HashMap, HashSet > s_menuSets @@ -272,9 +271,6 @@ public class LocUtils { result = getBlessedXlation( context, key, canUseDB ); } - if ( UPPER_CASE && null == result ) { - result = toUpperCase( key ); - } return result; } @@ -622,29 +618,6 @@ public class LocUtils { return result; } - // This is for testing, but the ability to pull the formatters will be - // critical for validating local transations of strings containing - // formatters. - private static String toUpperCase( String str ) - { - String result = null; - if ( UPPER_CASE ) { - String[] parts = str.split( RES_FORMAT ); - StringBuilder sb = new StringBuilder(); - int offset = 0; - for ( String part : parts ) { - sb.append( part.toUpperCase() ); - offset += part.length(); - if ( offset < str.length() ) { - sb.append( str.substring( offset, offset + FMT_LEN ) ); - offset += FMT_LEN; - } - } - result = sb.toString(); - } - return result; - } - private static void dropXLations( Context context ) { s_xlationsBlessed = null;