diff options
author | danmosemsft <danmose@microsoft.com> | 2017-02-10 17:12:53 -0800 |
---|---|---|
committer | danmosemsft <danmose@microsoft.com> | 2017-02-10 21:36:06 -0800 |
commit | 54891e0650e69f08832f75a40dc102efc6115d38 (patch) | |
tree | 0e032a0b337767801f696cbaeacded267c694f32 /src/vm/peimage.inl | |
parent | 396f7d43b3c0f3ca7034a6d1d9cd7d6914778a1e (diff) | |
download | coreclr-54891e0650e69f08832f75a40dc102efc6115d38.tar.gz coreclr-54891e0650e69f08832f75a40dc102efc6115d38.tar.bz2 coreclr-54891e0650e69f08832f75a40dc102efc6115d38.zip |
Remove always defined FEATURE_CORECLR
Diffstat (limited to 'src/vm/peimage.inl')
-rw-r--r-- | src/vm/peimage.inl | 114 |
1 files changed, 0 insertions, 114 deletions
diff --git a/src/vm/peimage.inl b/src/vm/peimage.inl index 4d913ea02b..6a0b3a07fb 100644 --- a/src/vm/peimage.inl +++ b/src/vm/peimage.inl @@ -405,47 +405,6 @@ inline const BOOL PEImage::HasStrongNameSignature() #ifndef DACCESS_COMPILE -#if !defined(FEATURE_CORECLR) -inline const HRESULT PEImage::VerifyStrongName(DWORD* verifyOutputFlags) -{ - WRAPPER_NO_CONTRACT; - _ASSERTE(verifyOutputFlags); - if (m_bSignatureInfoCached) - { - if (SUCCEEDED(m_hrSignatureInfoStatus)) - *verifyOutputFlags=m_dwSignatureInfo; - return m_hrSignatureInfoStatus; - } - - BOOL result = FALSE; - - PEImageLayoutHolder pLayout(GetLayout(PEImageLayout::LAYOUT_FLAT,0)); - if(pLayout!=NULL) - { - result = StrongNameSignatureVerificationFromImage((BYTE *) pLayout->GetBase(), pLayout->GetSize(), - SN_INFLAG_INSTALL|SN_INFLAG_ALL_ACCESS, - verifyOutputFlags); - } - else - { - CONSISTENCY_CHECK(!GetPath().IsEmpty()); - _ASSERTE(IsFileLocked()); - result = StrongNameSignatureVerification(GetPath(), - SN_INFLAG_INSTALL|SN_INFLAG_ALL_ACCESS|SN_INFLAG_RUNTIME, - verifyOutputFlags); - } - - HRESULT hr=result?S_OK: StrongNameErrorInfo(); - - if (SUCCEEDED(hr) || !Exception::IsTransient(hr)) - { - m_hrSignatureInfoStatus=hr; - m_dwSignatureInfo=*verifyOutputFlags; - m_bSignatureInfoCached=TRUE; - } - return hr; -} -#endif // !FEATURE_CORECLR #endif // !DACCESS_COMPILE @@ -579,59 +538,6 @@ inline void PEImage::Init(LPCWSTR pPath) } #ifndef DACCESS_COMPILE -#if !defined(FEATURE_CORECLR) -/*static*/ -inline PTR_PEImage PEImage::FindByLongPath(LPCWSTR pPath) -{ - CONTRACTL - { - THROWS; - GC_TRIGGERS; - MODE_ANY; - PRECONDITION(s_hashLock.OwnedByCurrentThread()); - } - CONTRACTL_END; - - PathString sLongPath; - COUNT_T nLen = WszGetLongPathName(pPath, sLongPath); - - // Check for any kind of error other than an insufficient buffer result. - if (nLen == 0) - { - HRESULT hr=HRESULT_FROM_WIN32(GetLastError()); - if(Exception::IsTransient(hr)) - ThrowHR(hr); - return (PEImage*)INVALIDENTRY; - } - return FindByPath(sLongPath.GetUnicode()); -} - -/*static*/ -inline PTR_PEImage PEImage::FindByShortPath(LPCWSTR pPath) -{ - CONTRACTL - { - THROWS; - GC_TRIGGERS; - MODE_ANY; - PRECONDITION(s_hashLock.OwnedByCurrentThread()); - } - CONTRACTL_END; - - PathString sShortPath; - COUNT_T nLen = WszGetShortPathName(pPath, sShortPath); - - // Check for any kind of error other than an insufficient buffer result. - if (nLen == 0) - { - HRESULT hr=HRESULT_FROM_WIN32(GetLastError()); - if(Exception::IsTransient(hr)) - ThrowHR(hr); - return (PEImage*)INVALIDENTRY; - } - return FindByPath(sShortPath.GetUnicode()); -} -#endif // !FEATURE_CORECLR /*static*/ inline PTR_PEImage PEImage::FindByPath(LPCWSTR pPath) @@ -673,13 +579,6 @@ inline PTR_PEImage PEImage::OpenImage(LPCWSTR pPath, MDInternalImportFlags flags PEImage* found = FindByPath(pPath); -#if !defined(FEATURE_CORECLR) - if(found == (PEImage*) INVALIDENTRY && (flags & MDInternalImport_CheckLongPath)) - found=FindByLongPath(pPath); - - if(found == (PEImage*) INVALIDENTRY && (flags & MDInternalImport_CheckShortPath)) - found=FindByShortPath(pPath); -#endif if (found == (PEImage*) INVALIDENTRY) { @@ -874,19 +773,6 @@ inline void PEImage::GetPEKindAndMachine(DWORD* pdwKind, DWORD* pdwMachine) } -#ifndef FEATURE_CORECLR -inline BOOL PEImage::IsReportedToUsageLog() -{ - LIMITED_METHOD_CONTRACT; - return m_fReportedToUsageLog; -} - -inline void PEImage::SetReportedToUsageLog() -{ - LIMITED_METHOD_CONTRACT; - m_fReportedToUsageLog = TRUE; -} -#endif // !FEATURE_CORECLR #ifndef DACCESS_COMPILE inline void PEImage::AllocateLazyCOWPages() |