mshtml: Remove no longer used get_nsIURI.

This commit is contained in:
Jacek Caban 2006-08-12 18:44:13 +02:00 committed by Alexandre Julliard
parent 57ba0459c9
commit 1088164af3
2 changed files with 0 additions and 26 deletions

View File

@ -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*);

View File

@ -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;
}