diff options
author | Jan Kotas <jkotas@microsoft.com> | 2016-02-18 05:14:56 +0300 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2016-02-27 05:59:28 +0300 |
commit | 85cb5dc1763ea1de1a21705b5d3fb5bc9e24bc9f (patch) | |
tree | df4e542d3af605aea911947be78e7659639fd5ac /src/Native/Runtime/RuntimeInstance.cpp | |
parent | e4806d61608bdb111fb98f25736337d46182f730 (diff) |
Delete SimpleModule registration
Diffstat (limited to 'src/Native/Runtime/RuntimeInstance.cpp')
-rw-r--r-- | src/Native/Runtime/RuntimeInstance.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/Native/Runtime/RuntimeInstance.cpp b/src/Native/Runtime/RuntimeInstance.cpp index fa4ab8550..48898f295 100644 --- a/src/Native/Runtime/RuntimeInstance.cpp +++ b/src/Native/Runtime/RuntimeInstance.cpp @@ -449,27 +449,6 @@ bool RuntimeInstance::RegisterModule(ModuleHeader *pModuleHeader) return true; } -bool RuntimeInstance::RegisterSimpleModule(SimpleModuleHeader *pModuleHeader) -{ - CreateHolder<Module> pModule = Module::Create(pModuleHeader); - - if (NULL == pModule) - return false; - - { - // WARNING: This region must be kept small and must not callout - // to arbitrary code. See Thread::Hijack for more details. - ReaderWriterLock::WriteHolder write(&m_ModuleListLock); - m_ModuleList.PushHead(pModule); - } - - pModule.SuppressRelease(); - // This event must occur after the module is added to the enumeration - DebugEventSource::SendModuleLoadEvent(pModule); - return true; -} - - void RuntimeInstance::UnregisterModule(Module *pModule) { { |