remove get_weak from singleton
authorAndrii Grynenko <andrii@fb.com>
Wed, 24 Sep 2014 00:50:05 +0000 (17:50 -0700)
committerDave Watson <davejwatson@fb.com>
Tue, 30 Sep 2014 23:17:16 +0000 (16:17 -0700)
Summary:

Test Plan: fbmake runtests, OBC no longer segfaults

Reviewed By: mshneer@fb.com

Subscribers: fbcode-common-diffs@, trunkagent, mcduff, marccelani, hitesh, mshneer, njormrod, lins

FB internal diff: D1573880

folly/experimental/Singleton.h

index 6c6a2eff662cd1f4878d5f7a49ab55541a55f4d9..c2100e0d90773a7009b75d8fbc5eb67d0c1831f6 100644 (file)
@@ -409,10 +409,6 @@ class Singleton {
     return std::weak_ptr<T>(get_shared({typeid(T), name}, vault));
   }
 
-  std::weak_ptr<T> get_weak(const char* name) {
-    return std::weak_ptr<T>(get_shared({typeid(T), name}, vault_));
-  }
-
   // Allow the Singleton<t> instance to also retrieve the underlying
   // singleton, if desired.
   T* ptr() { return get_ptr(type_descriptor_, vault_); }