diff options
author | danmosemsft <danmose@microsoft.com> | 2017-02-14 21:13:22 -0800 |
---|---|---|
committer | danmosemsft <danmose@microsoft.com> | 2017-02-14 21:24:06 -0800 |
commit | 1aa7d6b8796f7e28a63162117c5bb16a207a472b (patch) | |
tree | 1347fab12a3d22c12f40abc195f938f611951f83 /src/vm/pefile.inl | |
parent | 16eb7551d9f5ea8ec593dc86b789df4db2198a4b (diff) | |
download | coreclr-1aa7d6b8796f7e28a63162117c5bb16a207a472b.tar.gz coreclr-1aa7d6b8796f7e28a63162117c5bb16a207a472b.tar.bz2 coreclr-1aa7d6b8796f7e28a63162117c5bb16a207a472b.zip |
Remove never defined FEATURE_MULTIMODULE_ASSEMBLIES
Diffstat (limited to 'src/vm/pefile.inl')
-rw-r--r-- | src/vm/pefile.inl | 100 |
1 files changed, 0 insertions, 100 deletions
diff --git a/src/vm/pefile.inl b/src/vm/pefile.inl index 3d5e946110..9bd478e137 100644 --- a/src/vm/pefile.inl +++ b/src/vm/pefile.inl @@ -336,11 +336,7 @@ inline BOOL PEFile::IsResource() const WRAPPER_NO_CONTRACT; SUPPORTS_DAC; -#ifdef FEATURE_MULTIMODULE_ASSEMBLIES - return IsModule() && dac_cast<PTR_PEModule>(this)->IsResource(); -#else return FALSE; -#endif // FEATURE_MULTIMODULE_ASSEMBLIES } inline BOOL PEFile::IsIStream() const @@ -354,13 +350,6 @@ inline BOOL PEFile::IsIntrospectionOnly() const { WRAPPER_NO_CONTRACT; STATIC_CONTRACT_SO_TOLERANT; -#ifdef FEATURE_MULTIMODULE_ASSEMBLIES - if (IsModule()) - { - return dac_cast<PTR_PEModule>(this)->GetAssembly()->IsIntrospectionOnly(); - } - else -#endif // FEATURE_MULTIMODULE_ASSEMBLIES { return (m_flags & PEFILE_INTROSPECTIONONLY) != 0; } @@ -370,16 +359,9 @@ inline BOOL PEFile::IsIntrospectionOnly() const inline PEAssembly *PEFile::GetAssembly() const { WRAPPER_NO_CONTRACT; -#ifdef FEATURE_MULTIMODULE_ASSEMBLIES - if (IsAssembly()) - return dac_cast<PTR_PEAssembly>(this); - else - return dac_cast<PTR_PEModule>(this)->GetAssembly(); -#else _ASSERTE(IsAssembly()); return dac_cast<PTR_PEAssembly>(this); -#endif // FEATURE_MULTIMODULE_ASSEMBLIES } // ------------------------------------------------------------ @@ -610,10 +592,6 @@ inline LPCUTF8 PEFile::GetSimpleName() if (IsAssembly()) RETURN dac_cast<PTR_PEAssembly>(this)->GetSimpleName(); -#ifdef FEATURE_MULTIMODULE_ASSEMBLIES - else if (IsModule()) - RETURN dac_cast<PTR_PEModule>(this)->GetSimpleName(); -#endif // FEATURE_MULTIMODULE_ASSEMBLIES else { LPCUTF8 szScopeName; @@ -1853,84 +1831,6 @@ inline BOOL PEAssembly::IsFullySigned() // ------------------------------------------------------------ // Metadata access // ------------------------------------------------------------ -#ifdef FEATURE_MULTIMODULE_ASSEMBLIES -inline PEAssembly *PEModule::GetAssembly() -{ - CONTRACT(PEAssembly *) - { - POSTCONDITION(CheckPointer(RETVAL)); - NOTHROW; - GC_NOTRIGGER; - MODE_ANY; - CANNOT_TAKE_LOCK; - SO_TOLERANT; - SUPPORTS_DAC; - } - CONTRACT_END; - - RETURN m_assembly; -} - -inline BOOL PEModule::IsResource() -{ - CONTRACTL - { - NOTHROW; - GC_NOTRIGGER; - MODE_ANY; - SO_TOLERANT; - SUPPORTS_DAC; - } - CONTRACTL_END; -#ifdef DACCESS_COMPILE - _ASSERTE(m_bIsResource!=-1); -#else - if (m_bIsResource==-1) - { - DWORD flags; - if (FAILED(m_assembly->GetPersistentMDImport()->GetFileProps(m_token, NULL, NULL, NULL, &flags))) - { - _ASSERTE(!"If this fires, then we have to throw for corrupted images"); - flags = 0; - } - m_bIsResource=((flags & ffContainsNoMetaData) != 0); - } -#endif - - return m_bIsResource; -} - -inline LPCUTF8 PEModule::GetSimpleName() -{ - CONTRACT(LPCUTF8) - { - POSTCONDITION(CheckPointer(RETVAL)); - POSTCONDITION(strlen(RETVAL) > 0); - NOTHROW; - GC_NOTRIGGER; - MODE_ANY; - SO_TOLERANT; - SUPPORTS_DAC; - } - CONTRACT_END; - - LPCUTF8 name; - - if (FAILED(m_assembly->GetPersistentMDImport()->GetFileProps(m_token, &name, NULL, NULL, NULL))) - { - _ASSERTE(!"If this fires, then we have to throw for corrupted images"); - name = ""; - } - - RETURN name; -} - -inline mdFile PEModule::GetToken() -{ - LIMITED_METHOD_CONTRACT; - return m_token; -} -#endif // FEATURE_MULTIMODULE_ASSEMBLIES #ifndef DACCESS_COMPILE inline void PEFile::RestoreMDImport(IMDInternalImport* pImport) |