remove obsolete method

This commit is contained in:
Eric House 2020-08-28 09:58:28 -07:00
parent 20766631d5
commit a580335fea
2 changed files with 2 additions and 19 deletions

View file

@ -315,7 +315,6 @@ public class GamesListDelegate extends ListDelegateBase
final Set<Long> dbGroups = DBUtils.getGroups( m_activity ).keySet();
if ( null == m_groupPositions || m_groupPositions.length != dbGroups.size() ) {
long[] groupPositions = loadGroupPositions();
// If the stored order is out-of-sync with the DB, e.g. if
// there have been additions or deletions, keep the ordering
@ -323,6 +322,7 @@ public class GamesListDelegate extends ListDelegateBase
m_groupPositions = new long[dbGroups.size()];
Set<Long> added = new HashSet<>();
long[] groupPositions = loadGroupPositions();
int nextIndx = 0;
for ( long posn : groupPositions ) {
if ( dbGroups.contains(posn) ) {
@ -1937,12 +1937,10 @@ public class GamesListDelegate extends ListDelegateBase
private long[] loadGroupPositions()
{
long[] result;
long[] result = {};
Serializable obj = DBUtils.getSerializableFor( m_activity, GROUP_POSNS_KEY );
if ( null != obj && obj instanceof long[] ) {
result = (long[])obj;
} else {
result = XWPrefs.getGroupPositions( m_activity );
}
// Log.d( TAG, "loadGroupPositions() => %s", DbgUtils.toString(result) );
return result;

View file

@ -392,21 +392,6 @@ public class XWPrefs {
setPrefsLong( context, R.string.key_default_group, val );
}
// PENDING: remove this in a release or two.
public static long[] getGroupPositions( Context context )
{
long[] posns = null;
String[] longStrs = getPrefsStringArray( context,
R.string.key_group_posns );
if ( null != longStrs ) {
posns = new long[longStrs.length];
for ( int ii = 0; ii < longStrs.length; ++ii ) {
posns[ii] = Long.parseLong(longStrs[ii]);
}
}
return posns;
}
public static boolean getThumbEnabled( Context context )
{
return 0 < getThumbPct( context );