Cleanup of debugging
This commit is contained in:
@@ -3252,7 +3252,7 @@ public class AudiobookRecorder extends JFrame implements DocumentListener {
|
||||
}
|
||||
|
||||
File archiveFile = new File(archiveDir, name + ".abz");
|
||||
System.err.println("Archiving to " + archiveFile.getAbsolutePath());
|
||||
Debug.d("Archiving to", archiveFile.getAbsolutePath());
|
||||
if (archiveFile.exists()) {
|
||||
archiveFile.delete();
|
||||
}
|
||||
@@ -3674,7 +3674,7 @@ public class AudiobookRecorder extends JFrame implements DocumentListener {
|
||||
} else if (type.equals("highshelf")) {
|
||||
bq.setType(Biquad.Highshelf);
|
||||
} else {
|
||||
System.err.println("Bad Biquad type: " + type);
|
||||
Debug.d("Bad Biquad type:", type);
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -3969,7 +3969,7 @@ public class AudiobookRecorder extends JFrame implements DocumentListener {
|
||||
Debug.trace();
|
||||
try {
|
||||
if (selectedSentence == null) {
|
||||
System.err.println("Selected sentence is NULL in split. That CANNOT happen!");
|
||||
Debug.d("Selected sentence is NULL in split. That CANNOT happen!");
|
||||
return;
|
||||
}
|
||||
Chapter c = (Chapter)selectedSentence.getParent();
|
||||
@@ -4027,7 +4027,7 @@ public class AudiobookRecorder extends JFrame implements DocumentListener {
|
||||
public void setEffectsEnabled(boolean b) {
|
||||
Debug.trace();
|
||||
effectsEnabled = b;
|
||||
System.err.println("Effects Enabled: " + b);
|
||||
Debug.d("Effects Enabled:", b);
|
||||
}
|
||||
|
||||
public void setBookNotes(String text) {
|
||||
|
||||
@@ -83,7 +83,6 @@ public class BookInfoPanel extends JPanel {
|
||||
Pattern p = Pattern.compile("\\/titleview\\/([A-Z0-9]{14})");
|
||||
Matcher m = p.matcher(acx.getText());
|
||||
if (m.find()) {
|
||||
System.err.println(m);
|
||||
return m.group(1);
|
||||
}
|
||||
return acx.getText();
|
||||
|
||||
@@ -121,7 +121,7 @@ public class OpenBookPanel extends JPanel {
|
||||
c = c.getParent();
|
||||
}
|
||||
if (c == null) {
|
||||
System.err.println("Could not get option pane!");
|
||||
Debug.d("Could not get option pane!");
|
||||
} else {
|
||||
JOptionPane op = (JOptionPane)c;
|
||||
op.setValue(JOptionPane.OK_OPTION);
|
||||
|
||||
@@ -722,7 +722,7 @@ public class Options extends JDialog {
|
||||
} else if (value instanceof Boolean) {
|
||||
set(key, (Boolean)value);
|
||||
} else {
|
||||
System.err.println("Bad type for key " + key);
|
||||
Debug.d("Bad type for key", key);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -70,7 +70,7 @@ public class Utils {
|
||||
long t = System.currentTimeMillis();
|
||||
long d = t - millis;
|
||||
millis = t;
|
||||
System.err.println(String.format("%10d - %10s : %8d | %8d | %8d", d, tag,
|
||||
Debug.d(String.format("%10d - %10s : %8d | %8d | %8d", d, tag,
|
||||
Runtime.getRuntime().totalMemory(),
|
||||
Runtime.getRuntime().maxMemory(),
|
||||
Runtime.getRuntime().freeMemory()
|
||||
|
||||
@@ -55,10 +55,6 @@ public class VersionChecker implements Runnable {
|
||||
|
||||
if (Utils.s2i(installedVersion) >= Utils.s2i(availableVersion)) return;
|
||||
|
||||
System.err.println("Version installed: " + installed);
|
||||
System.err.println("Version available: " + available);
|
||||
System.err.println("URL: " + website);
|
||||
|
||||
JButton upgrade = new JButton("A new version is available.");
|
||||
upgrade.addActionListener(new ActionListener() {
|
||||
public void actionPerformed(ActionEvent evt) {
|
||||
|
||||
Reference in New Issue
Block a user