diff options
author | danmosemsft <danmose@microsoft.com> | 2017-02-14 22:20:22 -0800 |
---|---|---|
committer | danmosemsft <danmose@microsoft.com> | 2017-02-14 22:26:06 -0800 |
commit | fbbc3f800b105c79c24125685bb1d4e817c4ed28 (patch) | |
tree | 11005ade1f4a0a5f3fd10140fef567ba709d6d11 /src/vm/proftoeeinterfaceimpl.cpp | |
parent | d3392e5684483ae5518dcaa775c8f86dc1b08ec6 (diff) | |
download | coreclr-fbbc3f800b105c79c24125685bb1d4e817c4ed28.tar.gz coreclr-fbbc3f800b105c79c24125685bb1d4e817c4ed28.tar.bz2 coreclr-fbbc3f800b105c79c24125685bb1d4e817c4ed28.zip |
Remove never defined FEATURE_REMOTING
Diffstat (limited to 'src/vm/proftoeeinterfaceimpl.cpp')
-rw-r--r-- | src/vm/proftoeeinterfaceimpl.cpp | 83 |
1 files changed, 0 insertions, 83 deletions
diff --git a/src/vm/proftoeeinterfaceimpl.cpp b/src/vm/proftoeeinterfaceimpl.cpp index b7a0eb75e6..40f0864d72 100644 --- a/src/vm/proftoeeinterfaceimpl.cpp +++ b/src/vm/proftoeeinterfaceimpl.cpp @@ -3557,90 +3557,7 @@ HRESULT ProfToEEInterfaceImpl::GetContextStaticAddress(ClassID classId, fieldToken, contextId)); -#ifdef FEATURE_REMOTING - - // - // Check for NULL parameters - // - if ((classId == NULL) || (contextId == NULL) || (ppAddress == NULL)) - { - return E_INVALIDARG; - } - - if (GetThread() == NULL) - { - return CORPROF_E_NOT_MANAGED_THREAD; - } - - if (GetAppDomain() == NULL) - { - return E_FAIL; - } - - TypeHandle typeHandle = TypeHandle::FromPtr((void *)classId); - - // - // If this class is not fully restored, that is all the information we can get at this time. - // - if (!typeHandle.IsRestored()) - { - return CORPROF_E_DATAINCOMPLETE; - } - - // - // Get the field descriptor object - // - FieldDesc *pFieldDesc = typeHandle.GetModule()->LookupFieldDef(fieldToken); - - if (pFieldDesc == NULL) - { - return E_INVALIDARG; - } - - // - // Verify this field is of the right type - // - if(!pFieldDesc->IsStatic() || - !pFieldDesc->IsContextStatic() || - pFieldDesc->IsRVA() || - pFieldDesc->IsThreadStatic()) - { - return E_INVALIDARG; - } - - // It may seem redundant to try to retrieve the same method table from GetEnclosingMethodTable, but classId - // leads to the instantiated method table while GetEnclosingMethodTable returns the uninstantiated one. - MethodTable *pMethodTable = pFieldDesc->GetEnclosingMethodTable(); - - // - // Check that the data is available - // - if (!IsClassOfMethodTableInited(pMethodTable, GetAppDomain())) - { - return CORPROF_E_DATAINCOMPLETE; - } - - // - // Get the context - // - Context *pContext = reinterpret_cast<Context *>(contextId); - - // - // Store the result and return - // - PTR_VOID pAddress = pContext->GetStaticFieldAddrNoCreate(pFieldDesc); - if (pAddress == NULL) - { - return E_INVALIDARG; - } - - *ppAddress = pAddress; - - return S_OK; - -#else // FEATURE_REMOTING return E_NOTIMPL; -#endif // FEATURE_REMOTING } /* |