diff options
author | Jan Kotas <jkotas@microsoft.com> | 2016-03-08 00:41:21 -0800 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2016-03-09 08:46:07 -0800 |
commit | 618e798e3ba00e8b95158fd1d7081ca91cc43bf5 (patch) | |
tree | 091b7e7719d83d7408d623c82a3deaeca96e67ed /src/inc/ex.h | |
parent | b219fbbe1fe72b4a44b5247c9a77f9447d34b028 (diff) | |
download | coreclr-618e798e3ba00e8b95158fd1d7081ca91cc43bf5.tar.gz coreclr-618e798e3ba00e8b95158fd1d7081ca91cc43bf5.tar.bz2 coreclr-618e798e3ba00e8b95158fd1d7081ca91cc43bf5.zip |
Delete dead code
- Delete BINDER, STANDALONE_BINDER and MDIL ifdefs
Diffstat (limited to 'src/inc/ex.h')
-rw-r--r-- | src/inc/ex.h | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/src/inc/ex.h b/src/inc/ex.h index af1d0f558c..80b9aa0a07 100644 --- a/src/inc/ex.h +++ b/src/inc/ex.h @@ -18,70 +18,7 @@ void RetailAssertIfExpectedClean(); // Defined in src/utilcode/debug #define EX_TRY_HOLDER #endif // FEATURE_PAL -#ifdef CLR_STANDALONE_BINDER - -#define INCONTRACT(x) - -#define EX_THROW(type, value) throw type(value) - -void DECLSPEC_NORETURN ThrowLastError(); - -#define EX_TRY \ - try \ - { \ - EX_TRY_HOLDER \ - -#define EX_CATCH_HRESULT(_hr) } catch (HRESULT hr) { _hr = hr; } -#define EX_CATCH } catch(...) -#define EX_END_CATCH(a) -#define EX_RETHROW throw -#define EX_SWALLOW_NONTERMINAL } catch(...) {} -#define EX_END_CATCH_UNREACHABLE -#define EX_CATCH_HRESULT_NO_ERRORINFO(_hr) \ - EX_CATCH \ - { \ - (_hr) = GET_EXCEPTION()->GetHR(); \ - _ASSERTE(FAILED(_hr)); \ - } \ - EX_END_CATCH(SwallowAllExceptions) - -void DECLSPEC_NORETURN ThrowHR(HRESULT hr); -inline void DECLSPEC_NORETURN ThrowHR(HRESULT hr, int msgId) -{ - throw hr; -} -void DECLSPEC_NORETURN ThrowHR(HRESULT hr, SString const &msg); - -#define GET_EXCEPTION() ((Exception*)NULL) - -void DECLSPEC_NORETURN ThrowWin32(DWORD err); - -inline void IfFailThrow(HRESULT hr) -{ - WRAPPER_NO_CONTRACT; - - if (FAILED(hr)) - { - ThrowHR(hr); - } -} - -/* -inline HRESULT OutOfMemory() -{ - LEAF_CONTRACT; - return (E_OUTOFMEMORY); -} -*/ -#define COMPlusThrowNonLocalized(key, msg) throw msg - -// Set if fatal error (like stack overflow or out of memory) occurred in this process. -extern HRESULT g_hrFatalError; - -#endif //CLR_STANDALONE_BINDER - #include "sstring.h" -#ifndef CLR_STANDALONE_BINDER #include "crtwrap.h" #include "winwrap.h" #include "corerror.h" @@ -94,8 +31,6 @@ extern HRESULT g_hrFatalError; #define _DEBUG_IMPL 1 #endif -#endif //!CLR_STANDALONE_BINDER - //=========================================================================================== // These abstractions hide the difference between legacy desktop CLR's (that don't support @@ -664,8 +599,6 @@ class OutOfMemoryException : public Exception virtual BOOL IsPreallocatedException() { return bIsPreallocated; } }; -#ifndef CLR_STANDALONE_BINDER - template <typename STATETYPE> class CAutoTryCleanup { @@ -1583,5 +1516,4 @@ inline HRESULT IfTransientFailThrow(HRESULT hr) // Set if fatal error (like stack overflow or out of memory) occurred in this process. GVAL_DECL(HRESULT, g_hrFatalError); -#endif // !CLR_STANDALONE_BINDER #endif // _EX_H_ |