[prev in list] [next in list] [prev in thread] [next in thread]
List: wine-cvs
Subject: Jacek Caban : mshtml: Remove no longer needed set_profile.
From: Alexandre Julliard <julliard () winehq ! org>
Date: 2008-12-31 13:45:02
Message-ID: E1LI1Ne-0002uF-AN () wine ! codeweavers ! com
[Download RAW message or body]
Module: wine
Branch: master
Commit: 7901d5f258a56799d2270c50c8370655f65f281e
URL: http://source.winehq.org/git/wine.git/?a=commit;h=7901d5f258a56799d2270c50c8370655f65f281e
Author: Jacek Caban <jacek@codeweavers.com>
Date: Tue Dec 30 21:20:25 2008 +0100
mshtml: Remove no longer needed set_profile.
---
dlls/mshtml/nsembed.c | 30 ------------------------------
1 files changed, 0 insertions(+), 30 deletions(-)
diff --git a/dlls/mshtml/nsembed.c b/dlls/mshtml/nsembed.c
index 0797977..1a09587 100644
--- a/dlls/mshtml/nsembed.c
+++ b/dlls/mshtml/nsembed.c
@@ -369,35 +369,6 @@ static void set_bool_pref(nsIPrefBranch *pref, const char *pref_name, BOOL val)
ERR("Could not set pref %s\n", debugstr_a(pref_name));
}
-static void set_profile(void)
-{
- nsIProfile *profile;
- PRBool exists = FALSE;
- nsresult nsres;
-
- static const WCHAR wszMSHTML[] = {'M','S','H','T','M','L',0};
-
- nsres = nsIServiceManager_GetServiceByContractID(pServMgr, NS_PROFILE_CONTRACTID,
- &IID_nsIProfile, (void**)&profile);
- if(NS_FAILED(nsres)) {
- ERR("Could not get profile service: %08x\n", nsres);
- return;
- }
-
- nsres = nsIProfile_ProfileExists(profile, wszMSHTML, &exists);
- if(!exists) {
- nsres = nsIProfile_CreateNewProfile(profile, wszMSHTML, NULL, NULL, FALSE);
- if(NS_FAILED(nsres))
- ERR("CreateNewProfile failed: %08x\n", nsres);
- }
-
- nsres = nsIProfile_SetCurrentProfile(profile, wszMSHTML);
- if(NS_FAILED(nsres))
- ERR("SetCurrentProfile failed: %08x\n", nsres);
-
- nsIProfile_Release(profile);
-}
-
static void set_preferences(void)
{
nsIPrefBranch *pref;
@@ -473,7 +444,6 @@ static BOOL init_xpcom(const PRUnichar *gre_path)
ERR("could not get appstartup-notifier: %08x\n", nsres);
}
- set_profile();
set_preferences();
nsres = nsIComponentManager_CreateInstanceByContractID(pCompMgr, NS_MEMORY_CONTRACTID,
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic