diff options
Diffstat (limited to 'src/vm/security.inl')
-rw-r--r-- | src/vm/security.inl | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/src/vm/security.inl b/src/vm/security.inl index 2f1f96cca8..fe11589787 100644 --- a/src/vm/security.inl +++ b/src/vm/security.inl @@ -181,7 +181,9 @@ inline void Security::CheckLinkDemandAgainstAppDomain(MethodDesc *pMD) inline void Security::LinktimeCheckMethod(Assembly *pCaller, MethodDesc *pCallee) { WRAPPER_NO_CONTRACT; - SecurityDeclarative::LinktimeCheckMethod(pCaller, pCallee); +#ifdef FEATURE_CAS_POLICY + SecurityDeclarative::LinktimeCheckMethod(pCaller, pCallee); +#endif } inline void Security::ClassInheritanceCheck(MethodTable *pClass, MethodTable *pParent) @@ -196,12 +198,6 @@ inline void Security::MethodInheritanceCheck(MethodDesc *pMethod, MethodDesc *pP SecurityDeclarative::MethodInheritanceCheck(pMethod, pParent); } -inline void Security::GetPermissionInstance(OBJECTREF *perm, int index) -{ - WRAPPER_NO_CONTRACT; - SecurityDeclarative::GetPermissionInstance(perm, index); -} - inline void Security::DoDeclarativeActions(MethodDesc *pMD, DeclActionInfo *pActions, LPVOID pSecObj, MethodSecurityDescriptor *pMSD) { WRAPPER_NO_CONTRACT; @@ -232,14 +228,6 @@ inline BOOL Security::MethodIsVisibleOutsideItsAssembly(DWORD dwMethodAttr, DWOR return SecurityDeclarative::MethodIsVisibleOutsideItsAssembly(dwMethodAttr, dwClassAttr, fIsGlobalClass); } -inline void Security::CheckBeforeAllocConsole(AppDomain* pDomain, Assembly* pAssembly) -{ - WRAPPER_NO_CONTRACT; -#ifdef FEATURE_CAS_POLICY - SecurityRuntime::CheckBeforeAllocConsole(pDomain, pAssembly); -#endif -} - // ---------------------------------------- // SecurityStackWalk // ---------------------------------------- |