From c0927e64b1b75403f456ec83138ae411c48ced9e Mon Sep 17 00:00:00 2001 From: Steven Moreland Date: Thu, 11 Jul 2019 17:46:43 -0700 Subject: [PATCH] libutils: remove references to unimplemented func printWeakPointer isn't implemented anywhere. This also allows us to remove a forward declaration of TextOutput. Bug: N/A Test: N/A Change-Id: Ie2debdfda17b7cc1d599c431eaf4c362a591e482 --- libutils/include/utils/RefBase.h | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/libutils/include/utils/RefBase.h b/libutils/include/utils/RefBase.h index a105474bb..3a02a8a04 100644 --- a/libutils/include/utils/RefBase.h +++ b/libutils/include/utils/RefBase.h @@ -188,9 +188,6 @@ // --------------------------------------------------------------------------- namespace android { -class TextOutput; -TextOutput& printWeakPointer(TextOutput& to, const void* val); - // --------------------------------------------------------------------------- #define COMPARE_WEAK(_op_) \ @@ -459,9 +456,6 @@ private: weakref_type* m_refs; }; -template -TextOutput& operator<<(TextOutput& to, const wp& val); - #undef COMPARE_WEAK // --------------------------------------------------------------------------- @@ -635,12 +629,6 @@ void wp::clear() } } -template -inline TextOutput& operator<<(TextOutput& to, const wp& val) -{ - return printWeakPointer(to, val.unsafe_get()); -} - // --------------------------------------------------------------------------- // this class just serves as a namespace so TYPE::moveReferences can stay