1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-01-17 06:52:18 +01:00

Removed Preferences.init: no one used it

This commit is contained in:
Federico Fissore 2015-05-25 14:41:11 +02:00
parent 6c2a6aef6f
commit 5faa1c9866
3 changed files with 2 additions and 9 deletions

View File

@ -84,13 +84,6 @@ public class Preferences {
static final int GUI_SMALL = 6;
static protected void init(File file) {
PreferencesData.init(file);
// other things that have to be set explicitly for the defaults
PreferencesHelper.putColor(PreferencesData.prefs, "run.window.bgcolor", SystemColor.control);
}
@Deprecated
protected static void save() {
PreferencesData.save();

View File

@ -51,7 +51,7 @@ public abstract class AbstractGUITest {
FailOnThreadViolationRepaintManager.install();
BaseNoGui.initPlatform();
Preferences.init(null);
PreferencesData.init(null);
JPopupMenu.setDefaultLightWeightPopupEnabled(false);
Theme.init();
BaseNoGui.getPlatform().setLookAndFeel();

View File

@ -39,7 +39,7 @@ public abstract class AbstractWithPreferencesTest {
Runtime.getRuntime().addShutdownHook(new Thread(DeleteFilesOnShutdown.INSTANCE));
BaseNoGui.initPlatform();
BaseNoGui.getPlatform().init();
Preferences.init(null);
PreferencesData.init(null);
Theme.init();
BaseNoGui.initPackages();