--------------------------------------------------------------------------
| 242 | |
| 243 | //-------------------------------------------------------------------------- |
| 244 | void GuiMessageVectorCtrl::detach() |
| 245 | { |
| 246 | if (isAttached() == false) { |
| 247 | Con::warnf(ConsoleLogEntry::General, "GuiMessageVectorCtrl::detach: not attached!"); |
| 248 | return; |
| 249 | } |
| 250 | |
| 251 | mMessageVector->unregisterSpectator(this); |
| 252 | mMessageVector = NULL; |
| 253 | AssertFatal(mLineWrappings.size() == 0, "Error, line wrappings not properly cleared!"); |
| 254 | } |
| 255 | |
| 256 | |
| 257 | //-------------------------------------------------------------------------- |
no test coverage detected