mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-01-20 09:17:29 +07:00
Removed unnecessary code
Can only load from existing preference keys
This commit is contained in:
parent
872f2e732e
commit
51de82df58
@ -1,8 +1,6 @@
|
||||
package com.riiablo;
|
||||
|
||||
import android.support.annotation.NonNull;
|
||||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
import org.apache.commons.collections4.Trie;
|
||||
|
||||
import com.badlogic.gdx.Gdx;
|
||||
@ -120,20 +118,8 @@ public class GdxLoggerManager {
|
||||
}
|
||||
|
||||
public void loadAll() {
|
||||
log.trace("Loading existing contexts...");
|
||||
Set<String> loaded = new HashSet<>();
|
||||
for (String context : logs.getContexts().keySet()) {
|
||||
try {
|
||||
load(context);
|
||||
loaded.add(context);
|
||||
} catch (Throwable t) {
|
||||
log.warn("Failed to load {}", getDebugName(context), t);
|
||||
}
|
||||
}
|
||||
|
||||
log.trace("Loading preferences...");
|
||||
log.trace("Loading contexts...");
|
||||
for (String context : PREFERENCES.get().keySet()) {
|
||||
if (loaded.contains(context)) continue;
|
||||
try {
|
||||
load(context);
|
||||
} catch (Throwable t) {
|
||||
|
Loading…
Reference in New Issue
Block a user