diff --git a/src/coreclr/vm/readytoruninfo.cpp b/src/coreclr/vm/readytoruninfo.cpp index d91a48ada7323..a7a7e0394a1f4 100644 --- a/src/coreclr/vm/readytoruninfo.cpp +++ b/src/coreclr/vm/readytoruninfo.cpp @@ -635,16 +635,7 @@ ReadyToRunInfo::ReadyToRunInfo(Module * pModule, LoaderAllocator* pLoaderAllocat // In multi-assembly composite images, per assembly sections are stored next to their core headers. m_pCompositeInfo = pNativeImage->GetReadyToRunInfo(); m_pComposite = m_pCompositeInfo->GetComponentInfo(); - if (pNativeImage->GetComponentAssemblyCount() == 1) - { - // When there's just 1 component assembly in the composite image, we're skipping the - // assembly headers and store all sections directly in the main R2R header. - m_component = *m_pComposite; - } - else - { - m_component = ReadyToRunCoreInfo(m_pComposite->GetLayout(), pNativeImage->GetComponentAssemblyHeader(pModule->GetSimpleName())); - } + m_component = ReadyToRunCoreInfo(m_pComposite->GetLayout(), pNativeImage->GetComponentAssemblyHeader(pModule->GetSimpleName())); m_isComponentAssembly = true; } else