Skip to content

Commit 5fe9797

Browse files
committed
Delete JDA.previewCopy
1 parent 7bf7e22 commit 5fe9797

File tree

4 files changed

+4
-13
lines changed

4 files changed

+4
-13
lines changed

src/main/java/club/bytecode/the/jda/JDA.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
public class JDA {
3232
/*per version*/
3333
public static final String version = "1.1.0";
34-
public static final boolean previewCopy = false;
3534
/* Constants */
3635
public static final String fs = System.getProperty("file.separator");
3736
public static final String nl = System.getProperty("line.separator");
@@ -66,9 +65,6 @@ public static void main(String[] args) {
6665
}
6766
try {
6867
System.out.println("JDA (BCV Fork) v" + version);
69-
if (previewCopy)
70-
showMessage("WARNING: This is a preview/dev copy, you WON'T be alerted when " + version + " is actually out if you use this." + nl +
71-
"Make sure to watch the repo: https://github.com/ecx86/jda for " + version + "'s release");
7268
getJDADirectory();
7369

7470
loadPlugins();

src/main/java/club/bytecode/the/jda/api/ExceptionUI.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,7 @@ private void setup(Throwable e, String author) {
6262
e.printStackTrace(new PrintWriter(sw));
6363
e.printStackTrace();
6464

65-
txtrBytecodeViewerIs.setText("JDA v" + JDA.version +
66-
", Preview Copy: " + JDA.previewCopy +
67-
JDA.nl + JDA.nl + sw.toString());
65+
txtrBytecodeViewerIs.setText("JDA v" + JDA.version + JDA.nl + JDA.nl + sw.toString());
6866
this.setLocationRelativeTo(null);
6967
this.setVisible(true);
7068
}

src/main/java/club/bytecode/the/jda/gui/MainViewerGUI.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,7 @@ public void componentMoved(ComponentEvent e) {
122122
initializeMenubar();
123123
initializePanelGroup();
124124

125-
if (JDA.previewCopy)
126-
setTitle("JDA v" + JDA.version + " Preview");
127-
else
128-
setTitle("JDA v" + JDA.version);
125+
setTitle("JDA v" + JDA.version);
129126

130127
Dimension windowSize = Toolkit.getDefaultToolkit().getScreenSize();
131128
windowSize = new Dimension(windowSize.width * 3 / 4, windowSize.height * 2 / 3);

src/main/java/club/bytecode/the/jda/gui/dialogs/AboutWindow.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package club.bytecode.the.jda.gui.dialogs;
22

3-
import org.apache.commons.io.IOUtils;
43
import club.bytecode.the.jda.JDA;
54
import club.bytecode.the.jda.Resources;
5+
import org.apache.commons.io.IOUtils;
66

77
import javax.swing.*;
88
import javax.swing.text.html.HTMLEditorKit;
@@ -37,7 +37,7 @@ public AboutWindow() {
3737
editorPane.setEditable(false);
3838
try {
3939
String text = IOUtils.toString(Resources.class.getResourceAsStream("/club/bytecode/the/jda/html/about.html"), "UTF-8");
40-
text = text.replace("$JDA_VERSION$", JDA.version + (JDA.previewCopy ? " (preview)" : ""));
40+
text = text.replace("$JDA_VERSION$", JDA.version);
4141
text = text.replace("$JDA_ICON$", Resources.class.getClass().getResource("/club/bytecode/the/jda/images/icon.png").toString());
4242
editorPane.setText(text);
4343
} catch (IOException e) {

0 commit comments

Comments
 (0)