From 84143149dd691ab75d17426003e16255858e9b3c Mon Sep 17 00:00:00 2001 From: James Turk Date: Sun, 27 Feb 2005 06:27:57 +0000 Subject: [PATCH] removal of pointer access --- include/util/Singleton.hpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/include/util/Singleton.hpp b/include/util/Singleton.hpp index cb49c7f..1384d35 100644 --- a/include/util/Singleton.hpp +++ b/include/util/Singleton.hpp @@ -5,7 +5,7 @@ // James Turk (jpt2433@rit.edu) // // Version: -// $Id: Singleton.hpp,v 1.1 2005/02/27 05:50:54 cozman Exp $ +// $Id: Singleton.hpp,v 1.2 2005/02/27 06:27:57 cozman Exp $ #ifndef PHOTON_UTIL_SINGLETON_HPP #define PHOTON_UTIL_SINGLETON_HPP @@ -67,14 +67,6 @@ T& Singleton::getSingleton() return *instance_; } -template -std::auto_ptr Singleton::getSingletonPtr() -{ - assert(instance_.get() != 0); - - return instance_; -} - template std::auto_ptr Singleton::instance_(0);