Remove obsolete struct, never invoked.
authorPeter D. Barnes, Jr. <barnes26@llnl.gov>
Wed, 29 Jul 2015 12:44:41 -0700
changeset 11596 2eefc53442db
parent 11571 483a4c5a444e
child 11597 62e4e49c4c1b
Remove obsolete struct, never invoked.
src/core/model/fatal-impl.cc
--- a/src/core/model/fatal-impl.cc	Sun Aug 09 21:17:18 2015 +0200
+++ b/src/core/model/fatal-impl.cc	Wed Jul 29 12:44:41 2015 -0700
@@ -92,31 +92,6 @@
   return *pstreams;
 }
 
-/**
- * \ingroup fatalimpl
- * \brief Destructor for the list of fatal streams.
- *
- * \todo Is this ever called?
- * Not obvious that it is.  Test with something like
- * \code
- *   main (int argc, char ** argv)
- *   {
- *     NS_FATAL_MSG ("Aborting.")
- *   }
- * \endcode
- * Then run under valgrind or the debugger.  If this isn't called,
- * try adding the call to \c sigHandler.
- */
-struct destructor
-{
-  ~destructor ()
-  {
-    NS_LOG_FUNCTION (this);
-    std::list<std::ostream*> **pstreams = PeekStreamList ();
-    delete *pstreams;
-    *pstreams = 0;
-  }
-};
 }  // anonymous namespace
 
 void