From: Andrii Grynenko Date: Wed, 24 Sep 2014 00:50:05 +0000 (-0700) Subject: remove get_weak from singleton X-Git-Tag: v0.22.0~311 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c9f0ed55a3c0d91a368e48ce99409a4a2f0951d7;p=folly.git 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 --- 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_); }