Code polish

This commit is contained in:
nathan 2017-07-15 18:24:39 +02:00
parent 8ed1e0d3b0
commit 67cf2745d2
2 changed files with 1 additions and 6 deletions

View File

@ -38,7 +38,7 @@ interface Gtk {
// make specific versions of GTK2 vs GTK3 APIs
// ALSO, GTK must be loaded via .init()
Gtk Gtk2 = GtkLoader.init() && GtkLoader.isGtk2 ? new Gtk2() : new Gtk3();
Gtk Gtk2 = GtkLoader.isGtk2 ? new Gtk2() : new Gtk3();
Gtk3 Gtk3 = GtkLoader.isGtk2 ? null : (Gtk3) Gtk2;
boolean isGtk2 = GtkLoader.isGtk2;

View File

@ -199,10 +199,5 @@ class GtkLoader {
}
}
}
public static
boolean init() {
return true;
}
}