From aaa6ddae99ed891b93cfa776f2939f3d4ed281e6 Mon Sep 17 00:00:00 2001 From: "Peter D. Barnes, Jr." Date: Wed, 29 Jul 2015 12:44:41 -0700 Subject: [PATCH] Remove obsolete struct, never invoked. --- src/core/model/fatal-impl.cc | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/src/core/model/fatal-impl.cc b/src/core/model/fatal-impl.cc index 958138658..69ea9e87c 100644 --- a/src/core/model/fatal-impl.cc +++ b/src/core/model/fatal-impl.cc @@ -92,31 +92,6 @@ std::list *GetStreamList (void) 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 **pstreams = PeekStreamList (); - delete *pstreams; - *pstreams = 0; - } -}; } // anonymous namespace void