From: mfranz Date: Fri, 8 Jul 2005 06:45:00 +0000 (+0000) Subject: remove commented out and non-functional code for now X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e675f80a66719541726f9bfe9cf539c5631c44ed;p=flightgear.git remove commented out and non-functional code for now --- diff --git a/src/GUI/dialog.cxx b/src/GUI/dialog.cxx index 874a84254..ba544f62a 100644 --- a/src/GUI/dialog.cxx +++ b/src/GUI/dialog.cxx @@ -365,9 +365,6 @@ FGDialog::display (SGPropertyNode * props) bool userw = props->hasValue("width"); bool userh = props->hasValue("height"); - // Expand some elements. Has to be done before the layouter sees them. -// preprocess(props); - // Let the layout widget work in the same property subtree. LayoutWidget wid(props); @@ -701,27 +698,6 @@ FGDialog::setColor(puObject * object, SGPropertyNode * props, int which) } } -void -FGDialog::preprocess (SGPropertyNode * prop) -{ - for (int i = 0; i < prop->nChildren(); i++) { - SGPropertyNode *child = prop->getChild(i); - const char *name = child->getName(); - - if (!strcmp(name, "title")) { - prop->removeChild("title", child->getIndex(), false); - SGPropertyNode *tit = fgGetNode("/sim/gui/title"); - if (!tit) { - fprintf(stderr, "no tits here!\n"); - continue; - } - copyProperties(tit, prop->getChild(child->getIndex())); - writeProperties(cerr, prop, true); - } else - preprocess(prop->getChild(i)); - } -} - char ** FGDialog::make_char_array (int size) { diff --git a/src/GUI/dialog.hxx b/src/GUI/dialog.hxx index 743380535..473e839b5 100644 --- a/src/GUI/dialog.hxx +++ b/src/GUI/dialog.hxx @@ -132,9 +132,6 @@ private: // (PUCOL_LABEL, etc.) should pick up the property. void setColor(puObject * object, SGPropertyNode * props, int which = 0); - // Expand some elements according to style templates. - void preprocess (SGPropertyNode * props); - // The top-level PUI object. puObject * _object;