From c9f0ed55a3c0d91a368e48ce99409a4a2f0951d7 Mon Sep 17 00:00:00 2001 From: Andrii Grynenko Date: Tue, 23 Sep 2014 17:50:05 -0700 Subject: [PATCH] remove get_weak from singleton 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 | 4 ---- 1 file changed, 4 deletions(-) diff --git a/folly/experimental/Singleton.h b/folly/experimental/Singleton.h index 6c6a2eff..c2100e0d 100644 --- a/folly/experimental/Singleton.h +++ b/folly/experimental/Singleton.h @@ -409,10 +409,6 @@ class Singleton { return std::weak_ptr(get_shared({typeid(T), name}, vault)); } - std::weak_ptr get_weak(const char* name) { - return std::weak_ptr(get_shared({typeid(T), name}, vault_)); - } - // Allow the Singleton instance to also retrieve the underlying // singleton, if desired. T* ptr() { return get_ptr(type_descriptor_, vault_); } -- 2.34.1