| 1261 | } |
| 1262 | |
| 1263 | void SimXMLDocument::removeText() |
| 1264 | { |
| 1265 | if(m_paNode.empty()) |
| 1266 | return; |
| 1267 | |
| 1268 | const S32 iFinalElement = m_paNode.size() - 1; |
| 1269 | TiXmlElement* pNode = m_paNode[iFinalElement]; |
| 1270 | if(!pNode) |
| 1271 | return; |
| 1272 | |
| 1273 | if( !pNode->FirstChild() ) |
| 1274 | return; |
| 1275 | |
| 1276 | TiXmlText* text = pNode->FirstChild()->ToText(); |
| 1277 | if( !text ) |
| 1278 | return; |
| 1279 | |
| 1280 | pNode->RemoveChild(text); |
| 1281 | } |
| 1282 | |
| 1283 | DefineEngineMethod( SimXMLDocument, removeText, void, (),, |
| 1284 | "@brief Remove any text on the current Element.\n\n" |
no test coverage detected