1
0
Fork 0

remove commented out and non-functional code for now

This commit is contained in:
mfranz 2005-07-08 06:45:00 +00:00
parent ae96deb2c1
commit e675f80a66
2 changed files with 0 additions and 27 deletions

View 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)
{

View 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;