From c7e8f21a538c409abe70b90d7bba38386e90a876 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 29 Oct 2015 12:40:04 +0200 Subject: loplugin:unusedmethods Change-Id: Id3b5cd75d4357336ed592ef11a3f34d209f8e95f Reviewed-on: https://gerrit.libreoffice.org/19636 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- include/tools/rtti.hxx | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'include/tools') diff --git a/include/tools/rtti.hxx b/include/tools/rtti.hxx index ad13cef32ee6..57163611db6a 100644 --- a/include/tools/rtti.hxx +++ b/include/tools/rtti.hxx @@ -117,16 +117,6 @@ typedef void* (*TypeId)(); */ #define PTR_CAST( T, pObj ) rttiCast(pObj, TYPE(T)) -template -inline T1* rttiCast(T2* pObj, const TypeId& rTypeId) { - return (pObj && pObj->IsA( rTypeId )) ? static_cast(pObj) : 0; -}; - -template -inline const T1* rttiCast(const T2* pObj, const TypeId& rTypeId) { - return (pObj && pObj->IsA( rTypeId )) ? static_cast(pObj) : 0; -}; - /** Check whether object pObj has a Base Class T (or if pObj is an instance of T) */ #define HAS_BASE( T, pObj ) \ -- cgit