From 7ebbc4399c12b0222fb15f8ce21b83ad948b5ee4 Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Wed, 28 Aug 2002 16:34:02 -0400 Subject: no more singletons --- Source/cmaketest.cxx | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/Source/cmaketest.cxx b/Source/cmaketest.cxx index 5b2a4c4..4228053 100644 --- a/Source/cmaketest.cxx +++ b/Source/cmaketest.cxx @@ -26,26 +26,9 @@ #endif -// Create a class to clean up all the registered generators in case of return -struct CleanUp -{ - ~CleanUp() - { - cmMakefileGenerator::UnRegisterGenerators(); - cmCacheManager::DeleteInstance(); - - } - void UseIt() - { - } -}; - - // this is a test driver program for cmake. int main (int argc, char **argv) { - CleanUp cleanup; - cleanup.UseIt(); if (argc < 4) { std::cerr << "Usage: " << argv[0] << " test-src-dir test-bin-dir test-executable\n"; @@ -302,6 +285,5 @@ int main (int argc, char **argv) cmSystemTools::Error("test executable ", fullPath.c_str(), "returned a non-zero value"); } - cmCacheManager::DeleteInstance(); return ret; } -- cgit v0.12