Remove dead code. ManagedCleanup is unused, and contained a serious bug in that
authorOwen Anderson <resistor@mac.com>
Tue, 7 Sep 2010 20:53:39 +0000 (20:53 +0000)
committerOwen Anderson <resistor@mac.com>
Tue, 7 Sep 2010 20:53:39 +0000 (20:53 +0000)
the provided cleanup function is never actually called.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113284 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/ManagedStatic.h

index b8e223587fbd34d305704e2d701d7c8840689bf1..a6b3341c16556f09ac660db060431cf5cb85c2db 100644 (file)
@@ -91,12 +91,6 @@ public:
   }
 };
 
-template<void (*CleanupFn)(void*)>
-class ManagedCleanup : public ManagedStaticBase {
-public:
-  void Register() { RegisterManagedStatic(0, CleanupFn); }
-};
-
 /// llvm_shutdown - Deallocate and destroy all ManagedStatic variables.
 void llvm_shutdown();