From 2da497902a196bacb073b65a5c7030f002cbd349 Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Tue, 7 Sep 2010 20:53:39 +0000 Subject: [PATCH] Remove dead code. ManagedCleanup is unused, and contained a serious bug in that 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 | 6 ------ 1 file changed, 6 deletions(-) diff --git a/include/llvm/Support/ManagedStatic.h b/include/llvm/Support/ManagedStatic.h index b8e223587fb..a6b3341c165 100644 --- a/include/llvm/Support/ManagedStatic.h +++ b/include/llvm/Support/ManagedStatic.h @@ -91,12 +91,6 @@ public: } }; -template -class ManagedCleanup : public ManagedStaticBase { -public: - void Register() { RegisterManagedStatic(0, CleanupFn); } -}; - /// llvm_shutdown - Deallocate and destroy all ManagedStatic variables. void llvm_shutdown();