mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Remove debugging messages from Java config.
This commit is contained in:
parent
a00f2ae254
commit
fafe555a27
@ -36,10 +36,8 @@ public class ConfigFile {
|
||||
|
||||
private void parseLine(String line) {
|
||||
String[] tokens = line.split("=", 2);
|
||||
if (tokens.length < 2) {
|
||||
System.err.println("Didn't find two tokens in config line ...");
|
||||
if (tokens.length < 2)
|
||||
return;
|
||||
}
|
||||
|
||||
for (int i = 0; i < tokens.length; i++)
|
||||
tokens[i] = tokens[i].trim();
|
||||
@ -54,8 +52,6 @@ public class ConfigFile {
|
||||
|
||||
if (value.length() > 0)
|
||||
map.put(key, value);
|
||||
|
||||
System.out.println("Parsed: \"" + key + "\" => \"" + value + "\"");
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
@ -64,11 +60,8 @@ public class ConfigFile {
|
||||
|
||||
public void write(File file) throws IOException {
|
||||
PrintWriter writer = new PrintWriter(file.getAbsolutePath());
|
||||
for (Map.Entry<String, String> entry : map.entrySet()) {
|
||||
System.out.println("Key: " + entry.getKey() + " Value: "
|
||||
+ entry.getValue());
|
||||
for (Map.Entry<String, String> entry : map.entrySet())
|
||||
writer.println(entry.getKey() + " = \"" + entry.getValue() + "\"");
|
||||
}
|
||||
writer.close();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user