diff options
author | Noel Grandin <noel@peralex.com> | 2015-10-29 12:40:04 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-10-30 05:58:41 +0000 |
commit | c7e8f21a538c409abe70b90d7bba38386e90a876 (patch) | |
tree | c5d1e79d88c5728c29fa49106b0e7c40e0f5f01d /include/tools/rtti.hxx | |
parent | efbde08e2a9930edb4637824d9d3a768873314a8 (diff) |
loplugin:unusedmethods
Change-Id: Id3b5cd75d4357336ed592ef11a3f34d209f8e95f
Reviewed-on: https://gerrit.libreoffice.org/19636
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include/tools/rtti.hxx')
-rw-r--r-- | include/tools/rtti.hxx | 10 |
1 files changed, 0 insertions, 10 deletions
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<T>(pObj, TYPE(T)) -template<class T1, class T2> -inline T1* rttiCast(T2* pObj, const TypeId& rTypeId) { - return (pObj && pObj->IsA( rTypeId )) ? static_cast<T1*>(pObj) : 0; -}; - -template<class T1, class T2> -inline const T1* rttiCast(const T2* pObj, const TypeId& rTypeId) { - return (pObj && pObj->IsA( rTypeId )) ? static_cast<const T1*>(pObj) : 0; -}; - /** Check whether object pObj has a Base Class T (or if pObj is an instance of T) */ #define HAS_BASE( T, pObj ) \ |