From 330be5349367f48b25c9f19dbeadd0f30593c830 Mon Sep 17 00:00:00 2001
From: Vadim Zeitlin <vadim@wxwidgets.org>
Date: Tue, 8 Mar 2005 11:17:01 +0000
Subject: [PATCH] removed wx_dynamic_cast(), it can't be implemented properly
 without real dynamic_cast<>

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32674 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---
 docs/latex/wx/function.tex | 23 +----------------------
 include/wx/defs.h          |  6 ------
 2 files changed, 1 insertion(+), 28 deletions(-)

diff --git a/docs/latex/wx/function.tex b/docs/latex/wx/function.tex
index 7a3922c115..dcca717867 100644
--- a/docs/latex/wx/function.tex
+++ b/docs/latex/wx/function.tex
@@ -247,7 +247,6 @@ the corresponding topic.
 \helpref{wxWriteResource}{wxwriteresource}\\
 \helpref{wxYield}{wxyield}\\
 \helpref{wx\_const\_cast}{wxconstcastraw}\\
-\helpref{wx\_dynamic\_cast}{wxdynamiccastraw}\\
 \helpref{wx\_reinterpret\_cast}{wxreinterpretcastraw}\\
 \helpref{wx\_static\_cast}{wxstaticcastraw}\\
 \helpref{\_}{underscore}\\
@@ -3501,8 +3500,7 @@ Example:
 \helpref{RTTI overview}{runtimeclassoverview}\\
 \helpref{wxDynamicCastThis}{wxdynamiccastthis}\\
 \helpref{wxConstCast}{wxconstcast}\\
-\helpref{wxStaticCast}{wxstaticcast}\\
-\helpref{wx\_dynamic\_cast}{wxdynamiccastraw}
+\helpref{wxStaticCast}{wxstaticcast}
 
 
 \membersection{wxDynamicCastThis}\label{wxdynamiccastthis}
@@ -3545,23 +3543,6 @@ arguments is the same as for the standard cast.
 
 \wxheading{See also}
 
-\helpref{wx\_dynamic\_cast}{wxdynamiccastraw},\\
-\helpref{wx\_reinterpret\_cast}{wxreinterpretcastraw},\\
-\helpref{wx\_static\_cast}{wxstaticcastraw}
-
-
-\membersection{wx\_dynamic\_cast}\label{wxdynamiccastraw}
-
-\func{T}{wx\_dynamic\_cast}{T, x}
-
-Same as \texttt{dynamic\_cast<T>(x)} if the compiler supports dynamic cast or
-\texttt{(T)x} for old compilers. Unlike \helpref{wxDynamicCast}{wxdynamiccast},
-the cast it to the type \arg{T} and not to \texttt{T *} and also the order of
-arguments is the same as for the standard cast.
-
-\wxheading{See also}
-
-\helpref{wx\_const\_cast}{wxconstcastraw},\\
 \helpref{wx\_reinterpret\_cast}{wxreinterpretcastraw},\\
 \helpref{wx\_static\_cast}{wxstaticcastraw}
 
@@ -3576,7 +3557,6 @@ Same as \texttt{reinterpret\_cast<T>(x)} if the compiler supports reinterpret ca
 \wxheading{See also}
 
 \helpref{wx\_const\_cast}{wxconstcastraw},\\
-\helpref{wx\_dynamic\_cast}{wxdynamiccastraw},\\
 \helpref{wx\_static\_cast}{wxstaticcastraw}
 
 
@@ -3593,7 +3573,6 @@ star is not appended to it.
 \wxheading{See also}
 
 \helpref{wx\_const\_cast}{wxconstcastraw},\\
-\helpref{wx\_dynamic\_cast}{wxdynamiccastraw},\\
 \helpref{wx\_reinterpret\_cast}{wxreinterpretcastraw}
 
 
diff --git a/include/wx/defs.h b/include/wx/defs.h
index dc12e2af95..49949f1b5f 100644
--- a/include/wx/defs.h
+++ b/include/wx/defs.h
@@ -280,12 +280,6 @@ typedef int wxWindowID;
     #define wx_static_cast(t, x) ((t)(x))
 #endif
 
-#ifdef HAVE_DYNAMIC_CAST
-    #define wx_dynamic_cast(t, x) dynamic_cast<t>(x)
-#else
-    #define wx_dynamic_cast(t, x) ((t)(x))
-#endif
-
 #ifdef HAVE_CONST_CAST
     #define wx_const_cast(t, x) const_cast<t>(x)
 #else
-- 
2.50.0

