diff --git a/src/coreclr/md/compiler/emit.cpp b/src/coreclr/md/compiler/emit.cpp index 4477d55c215e2f..6394b4918d86b0 100644 --- a/src/coreclr/md/compiler/emit.cpp +++ b/src/coreclr/md/compiler/emit.cpp @@ -2751,10 +2751,6 @@ HRESULT RegMeta::DefineProperty( IfFailGo(_SetPropertyProps(*pmdProp, dwPropFlags, dwCPlusTypeFlag, pValue, cchValue, mdSetter, mdGetter, rmdOtherMethods)); - // Add the to the lookup table - if (m_pStgdb->m_MiniMd.HasIndirectTable(TBL_Property)) - IfFailGo( m_pStgdb->m_MiniMd.AddPropertyToLookUpTable(*pmdProp, td) ); - ErrExit: SetCallerExternal(); diff --git a/src/coreclr/md/compiler/regmeta_emit.cpp b/src/coreclr/md/compiler/regmeta_emit.cpp index 4a33c52245b64e..c53a45261b3826 100644 --- a/src/coreclr/md/compiler/regmeta_emit.cpp +++ b/src/coreclr/md/compiler/regmeta_emit.cpp @@ -1333,10 +1333,6 @@ HRESULT RegMeta::_DefineEvent( // Return hresult. IfFailGo(m_pStgdb->m_MiniMd.PutString(TBL_Event, EventRec::COL_Name, pEventRec, szUTF8Event)); IfFailGo(_SetEventProps1(*pmdEvent, dwEventFlags, tkEventType)); - // Add the to the lookup table - if (m_pStgdb->m_MiniMd.HasIndirectTable(TBL_Event)) - IfFailGo( m_pStgdb->m_MiniMd.AddEventToLookUpTable(*pmdEvent, td) ); - IfFailGo(UpdateENCLog(*pmdEvent)); ErrExit: