diff options
author | 2013-01-31 13:54:11 +0000 | |
---|---|---|
committer | 2013-01-31 13:54:11 +0000 | |
commit | 34bf46e8290d3ed2c13e598527b54d2290ff11b5 (patch) | |
tree | ee55143827f08ca61473171c2f1e9b503027cab1 /src | |
parent | bfb62eeb19e35530246307a08d3c315f9fdd3df4 (diff) |
removed unused crosscast() function from emucore.h (nw)
Diffstat (limited to 'src')
-rw-r--r-- | src/emu/emucore.h | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/emu/emucore.h b/src/emu/emucore.h index 90f2e815634..5b6c7291d5c 100644 --- a/src/emu/emucore.h +++ b/src/emu/emucore.h @@ -381,31 +381,6 @@ inline _Dest downcast(_Source &src) } -// template function for cross-casting from one class to another that throws a bad_cast -// exception instead of returning NULL -template<class _Dest, class _Source> -inline _Dest crosscast(_Source *src) -{ - _Dest result; -#ifdef MAME_DEBUG - try - { -#endif - result = dynamic_cast<_Dest>(src); -#ifdef MAME_DEBUG - } - catch (std::bad_cast &) - { - report_bad_cast(typeid(src), typeid(_Dest)); - } -#endif - assert(result != NULL); - if (result == NULL) - throw std::bad_cast(); - return result; -} - - //************************************************************************** // FUNCTION PROTOTYPES |