Util: Revert allow setting instance pointer manually

This is unnecessary as the allocation + placement new works.
This commit is contained in:
Riyyi
2022-09-25 21:40:21 +02:00
parent da9fb1ed0f
commit 703be90792
2 changed files with 2 additions and 7 deletions
+2
View File
@@ -331,6 +331,8 @@ struct Formatter<Specifier> : Formatter<std::nullptr_t> {
} // namespace ruc::format } // namespace ruc::format
using ruc::format::Formatter;
#if 0 #if 0
TODO: TODO:
-7
View File
@@ -46,13 +46,6 @@ public:
protected: protected:
Singleton() {} Singleton() {}
// Hack: in certain situations the instance needs to be set early
static void set(T* instance)
{
VERIFY(!s_instance, "singleton already exists");
s_instance = instance;
}
// Constructor token // Constructor token
struct s {}; struct s {};