Commit 1088164a authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Remove no longer used get_nsIURI.

parent 57ba0459
......@@ -295,8 +295,6 @@ void init_nsio(nsIComponentManager*,nsIComponentRegistrar*);
void hlink_frame_navigate(HTMLDocument*,IHlinkFrame*,LPCWSTR,nsIInputStream*,DWORD);
nsIURI *get_nsIURI(LPCWSTR);
void *nsalloc(size_t);
void nsfree(void*);
......
......@@ -1917,27 +1917,3 @@ void init_nsio(nsIComponentManager *component_manager, nsIComponentRegistrar *re
if(NS_FAILED(nsres))
ERR("RegisterFactory failed: %08lx\n", nsres);
}
nsIURI *get_nsIURI(LPCWSTR url)
{
nsIURI *ret;
nsACString acstr;
nsresult nsres;
char *urla;
int len;
len = WideCharToMultiByte(CP_ACP, 0, url, -1, NULL, -1, NULL, NULL);
urla = mshtml_alloc(len);
WideCharToMultiByte(CP_ACP, 0, url, -1, urla, -1, NULL, NULL);
nsACString_Init(&acstr, urla);
nsres = nsIIOService_NewURI(nsio, &acstr, NULL, NULL, &ret);
if(NS_FAILED(nsres))
FIXME("NewURI failed: %08lx\n", nsres);
nsACString_Finish(&acstr);
mshtml_free(urla);
return ret;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment