Skip to content

Commit 5faa1c9

Browse files
author
Federico Fissore
committed
Removed Preferences.init: no one used it
1 parent 6c2a6ae commit 5faa1c9

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

app/src/processing/app/Preferences.java

-7
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,6 @@ public class Preferences {
8484

8585
static final int GUI_SMALL = 6;
8686

87-
static protected void init(File file) {
88-
PreferencesData.init(file);
89-
90-
// other things that have to be set explicitly for the defaults
91-
PreferencesHelper.putColor(PreferencesData.prefs, "run.window.bgcolor", SystemColor.control);
92-
}
93-
9487
@Deprecated
9588
protected static void save() {
9689
PreferencesData.save();

app/test/processing/app/AbstractGUITest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public void startUpTheIDE() throws Exception {
5151
FailOnThreadViolationRepaintManager.install();
5252

5353
BaseNoGui.initPlatform();
54-
Preferences.init(null);
54+
PreferencesData.init(null);
5555
JPopupMenu.setDefaultLightWeightPopupEnabled(false);
5656
Theme.init();
5757
BaseNoGui.getPlatform().setLookAndFeel();

app/test/processing/app/AbstractWithPreferencesTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public void init() throws Exception {
3939
Runtime.getRuntime().addShutdownHook(new Thread(DeleteFilesOnShutdown.INSTANCE));
4040
BaseNoGui.initPlatform();
4141
BaseNoGui.getPlatform().init();
42-
Preferences.init(null);
42+
PreferencesData.init(null);
4343
Theme.init();
4444

4545
BaseNoGui.initPackages();

0 commit comments

Comments
 (0)