Module: wine Branch: master Commit: 2e53ac9d8e38a77bc8da79d393a36a32e40fcd52 URL: http://source.winehq.org/git/wine.git/?a=commit;h=2e53ac9d8e38a77bc8da79d393...
Author: Jacek Caban jacek@codeweavers.com Date: Fri Feb 9 20:19:56 2007 +0100
mshtml: Remove no longer used [Get|Set]Moniker functions.
---
dlls/mshtml/nsiface.idl | 2 - dlls/mshtml/nsio.c | 58 ----------------------------------------------- 2 files changed, 0 insertions(+), 60 deletions(-)
diff --git a/dlls/mshtml/nsiface.idl b/dlls/mshtml/nsiface.idl index a93c957..09b4793 100644 --- a/dlls/mshtml/nsiface.idl +++ b/dlls/mshtml/nsiface.idl @@ -1529,8 +1529,6 @@ interface nsIWineURI : nsIURI
nsresult GetNSContainer(NSContainer **aNSContainer); nsresult SetNSContainer(NSContainer *aNSContainer); - nsresult GetMoniker(IMoniker **aMoniker); - nsresult SetMoniker(IMoniker *aMoniker); nsresult GetIsDocumentURI(PRBool *aIsDocumentURI); nsresult SetIsDocumentURI(PRBool aIsDocumentURI); nsresult GetWineURL(LPCWSTR *aURL); diff --git a/dlls/mshtml/nsio.c b/dlls/mshtml/nsio.c index 2cd226c..b075b7b 100644 --- a/dlls/mshtml/nsio.c +++ b/dlls/mshtml/nsio.c @@ -55,7 +55,6 @@ typedef struct {
nsIURI *uri; NSContainer *container; - IMoniker *mon; LPWSTR wine_url; PRBool is_doc_uri; } nsURI; @@ -1153,8 +1152,6 @@ static nsrefcnt NSAPI nsURI_Release(nsIW nsIWebBrowserChrome_Release(NSWBCHROME(This->container)); if(This->uri) nsIURI_Release(This->uri); - if(This->mon) - IMoniker_Release(This->mon); mshtml_free(This->wine_url); mshtml_free(This); } @@ -1553,58 +1550,6 @@ static nsresult NSAPI nsURI_SetNSContain return NS_OK; }
-static nsresult NSAPI nsURI_GetMoniker(nsIWineURI *iface, IMoniker **aMoniker) -{ - nsURI *This = NSURI_THIS(iface); - - TRACE("(%p)->(%p)\n", This, aMoniker); - - if(This->mon) - IMoniker_AddRef(This->mon); - *aMoniker = This->mon; - - return NS_OK; -} - -static nsresult NSAPI nsURI_SetMoniker(nsIWineURI *iface, IMoniker *aMoniker) -{ - nsURI *This = NSURI_THIS(iface); - - TRACE("(%p)->(%p)\n", This, aMoniker); - - if(This->mon) { - WARN("Moniker already set: %p\n", This->container); - IMoniker_Release(This->mon); - - mshtml_free(This->wine_url); - This->wine_url = NULL; - } - - if(aMoniker) { - LPWSTR url = NULL; - HRESULT hres; - - hres = IMoniker_GetDisplayName(aMoniker, NULL, NULL, &url); - if(SUCCEEDED(hres)) { - DWORD len; - - len = strlenW(url)+1; - This->wine_url = mshtml_alloc(len*sizeof(WCHAR)); - memcpy(This->wine_url, url, len*sizeof(WCHAR)); - CoTaskMemFree(url); - - TRACE("wine_url %s\n", debugstr_w(This->wine_url)); - }else { - ERR("GetDisplayName failed: %08x\n", hres); - } - - IMoniker_AddRef(aMoniker); - } - This->mon = aMoniker; - - return NS_OK; -} - static nsresult NSAPI nsURI_GetIsDocumentURI(nsIWineURI *iface, PRBool *aIsDocumentURI) { nsURI *This = NSURI_THIS(iface); @@ -1688,8 +1633,6 @@ static const nsIWineURIVtbl nsWineURIVtb nsURI_GetOriginCharset, nsURI_GetNSContainer, nsURI_SetNSContainer, - nsURI_GetMoniker, - nsURI_SetMoniker, nsURI_GetIsDocumentURI, nsURI_SetIsDocumentURI, nsURI_GetWineURL, @@ -1704,7 +1647,6 @@ static nsresult create_uri(nsIURI *uri, ret->ref = 1; ret->uri = uri; ret->container = container; - ret->mon = NULL; ret->wine_url = NULL; ret->is_doc_uri = FALSE;