diff --git a/src/coreclr/inc/ceegen.h b/src/coreclr/inc/ceegen.h index b7278667cccad..2a2f30aa12cd1 100644 --- a/src/coreclr/inc/ceegen.h +++ b/src/coreclr/inc/ceegen.h @@ -224,10 +224,6 @@ class CCeeGen : public ICeeGenInternal { _In_ LPWSTR lpString, // [IN] String to emit ULONG *RVA); - STDMETHODIMP GetString ( - ULONG RVA, - __inout LPWSTR *lpString); - STDMETHODIMP AllocateMethodBuffer ( ULONG cchBuffer, // [IN] Length of string to emit UCHAR **lpBuffer, // [OUT] Returned buffer diff --git a/src/coreclr/inc/corpriv.h b/src/coreclr/inc/corpriv.h index 45e0c49b1fea6..7a138d7848b55 100644 --- a/src/coreclr/inc/corpriv.h +++ b/src/coreclr/inc/corpriv.h @@ -379,11 +379,6 @@ DECLARE_INTERFACE_(ICeeGenInternal, IUnknown) LPWSTR lpString, // [IN] String to emit ULONG * RVA) PURE; // [OUT] RVA for string emitted string - STDMETHOD(GetString) ( - ULONG RVA, // [IN] RVA for string to return - _Out_opt_ - LPWSTR * lpString) PURE; // [OUT] Returned string - STDMETHOD(AllocateMethodBuffer) ( ULONG cchBuffer, // [IN] Length of buffer to create UCHAR * *lpBuffer, // [OUT] Returned buffer diff --git a/src/coreclr/md/ceefilegen/cceegen.cpp b/src/coreclr/md/ceefilegen/cceegen.cpp index c5987c73ab185..84fa06b0aaabc 100644 --- a/src/coreclr/md/ceefilegen/cceegen.cpp +++ b/src/coreclr/md/ceefilegen/cceegen.cpp @@ -110,21 +110,6 @@ STDMETHODIMP CCeeGen::EmitString (_In_ LPWSTR lpString, ULONG *RVA) return hr; } -STDMETHODIMP CCeeGen::GetString(ULONG RVA, __inout LPWSTR *lpString) -{ - HRESULT hr = E_FAIL; - - if (! lpString) - IfFailGo(E_POINTER); - *lpString = (LPWSTR)getStringSection().computePointer(RVA); - - -ErrExit: - if (*lpString) - return S_OK; - return hr; -} - STDMETHODIMP CCeeGen::AllocateMethodBuffer(ULONG cchBuffer, UCHAR **lpBuffer, ULONG *RVA) { HRESULT hr = S_OK;