@@ -65,53 +65,6 @@ NOINLINE LPVOID __FCThrow(LPVOID __me, RuntimeExceptionKind reKind, UINT resID,
65
65
return NULL ;
66
66
}
67
67
68
- NOINLINE LPVOID __FCThrowArgument (LPVOID __me, RuntimeExceptionKind reKind, LPCWSTR argName, LPCWSTR resourceName)
69
- {
70
- STATIC_CONTRACT_THROWS;
71
- // This isn't strictly true... But the guarantee that we make here is
72
- // that we won't trigger without having setup a frame.
73
- // STATIC_CONTRACT_TRIGGER
74
- STATIC_CONTRACT_GC_NOTRIGGER;
75
-
76
- // side effect the compiler can't remove
77
- if (FC_NO_TAILCALL != 1 )
78
- return (LPVOID)(SIZE_T)(FC_NO_TAILCALL + 1 );
79
-
80
- FC_CAN_TRIGGER_GC ();
81
- INCONTRACT (FCallCheck __fCallCheck (__FILE__, __LINE__));
82
- FC_GC_POLL_NOT_NEEDED (); // throws always open up for GC
83
-
84
- HELPER_METHOD_FRAME_BEGIN_RET_ATTRIB_NOPOLL (Frame::FRAME_ATTR_CAPTURE_DEPTH_2);
85
-
86
- switch (reKind) {
87
- case kArgumentNullException :
88
- if (resourceName) {
89
- COMPlusThrowArgumentNull (argName, resourceName);
90
- } else {
91
- COMPlusThrowArgumentNull (argName);
92
- }
93
- break ;
94
-
95
- case kArgumentOutOfRangeException :
96
- COMPlusThrowArgumentOutOfRange (argName, resourceName);
97
- break ;
98
-
99
- case kArgumentException :
100
- COMPlusThrowArgumentException (argName, resourceName);
101
- break ;
102
-
103
- default :
104
- // If you see this assert, add a case for your exception kind above.
105
- _ASSERTE (argName == NULL );
106
- COMPlusThrow (reKind, resourceName);
107
- }
108
-
109
- HELPER_METHOD_FRAME_END ();
110
- FC_CAN_TRIGGER_GC_END ();
111
- _ASSERTE (!" Throw returned" );
112
- return NULL ;
113
- }
114
-
115
68
/* *************************************************************************************/
116
69
/* erect a frame in the FCALL and then poll the GC, objToProtect will be protected
117
70
during the poll and the updated object returned. */
0 commit comments