From eb38d1f92b865e39fe6c2693a24bd8825e5fe7c4 Mon Sep 17 00:00:00 2001 From: mfranz Date: Mon, 7 Aug 2006 15:19:22 +0000 Subject: [PATCH] remove experimental and unused code (we read the splash screen style from /sim/gui/style[0] since a while, not from the preferred style. This allows overriding it from *-set.xml files.) --- src/Main/splash.cxx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/Main/splash.cxx b/src/Main/splash.cxx index fef5c0c01..4cf41a544 100644 --- a/src/Main/splash.cxx +++ b/src/Main/splash.cxx @@ -56,7 +56,7 @@ static const char *progress_text = 0; static SGTexture splash; -SGPropertyNode_ptr style; +SGPropertyNode_ptr style = 0; // Initialize the splash screen @@ -65,11 +65,7 @@ void fgSplashInit ( const char *splash_texture ) { SG_LOG( SG_GENERAL, SG_INFO, "Initializing splash screen" ); - int which = fgGetInt("/sim/gui/current-style", 0); - SGPropertyNode *sim = fgGetNode("/sim/gui", true); - style = sim->getChild("style", 0/*which*/); // always use style[0]? - if (!style) - style = sim->getChild("style", 0, true); + style = fgGetNode("/sim/gui/style[0]", true); if (!fgGetBool("/sim/startup/splash-screen")) return;