]> git.mxchange.org Git - flightgear.git/commitdiff
remove commented out and non-functional code for now
authormfranz <mfranz>
Fri, 8 Jul 2005 06:45:00 +0000 (06:45 +0000)
committermfranz <mfranz>
Fri, 8 Jul 2005 06:45:00 +0000 (06:45 +0000)
src/GUI/dialog.cxx
src/GUI/dialog.hxx

index 874a842549e7b7f4a2a60794aca706cd00479c94..ba544f62ad4a9dca3b4acbbb649790910851d3c9 100644 (file)
@@ -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)
 {
index 743380535a98ec32ee5d6e45c9eed632f3e503dd..473e839b596c7532fc6331362d4242de300979b6 100644 (file)
@@ -132,9 +132,6 @@ private:
     // (PUCOL_LABEL, etc.) should pick up the <color> 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;