Browse Source

Removing useless stuff

master
boisso 7 years ago
parent
commit
b855cb2f36
  1. 5
      k-meleon/BrowserGlue.cpp
  2. 2
      k-meleon/privacy/privacy.cpp

5
k-meleon/BrowserGlue.cpp

@ -612,11 +612,6 @@ bool CBrowserGlue::performXULCommand(LPCWSTR id, LPCTSTR siteUri)
mpBrowserFrame->SendMessage(WM_COMMAND, (WPARAM)nid, 0L);
return true;
}
nsCOMPtr<nsICommandManager> manager(do_GetService(NS_COMMAND_MANAGER_CONTRACTID));
nsCOMPtr<nsIDOMWindow> dom = mpBrowserView->GetBrowserWrapper()->GetContentWindow();
if (NS_SUCCEEDED(manager->DoCommand(CStringToNSUTF8String(id).get(), nullptr, dom)))
return true;
}
return false;

2
k-meleon/privacy/privacy.cpp

@ -46,7 +46,6 @@ Locale* gLoc = NULL;
#define PRV_ONSTARTUP 1
#define PRV_ONSHUTDOWN 2
char settingsDir[MAX_PATH]; // settings directory
TCHAR cacheParentDir[MAX_PATH]; // cache parent directory
TCHAR signonFileName[MAX_PATH]; // sign on file
@ -110,7 +109,6 @@ void InitGlobals()
cmdClearSignon = kFuncs->GetCommandIDs(1);
cmdClearHistory = kFuncs->GetCommandIDs(1);
cmdConfig = kFuncs->GetCommandIDs(1);
kFuncs->GetFolder(UserSettingsFolder, settingsDir, MAX_PATH);
kFuncs->GetPreference(PREF_UNISTRING, PREFERENCE_CACHE_PARENTDIR, cacheParentDir, NULL);
kFuncs->GetPreference(PREF_UNISTRING, PREFERENCE_SIGNON_FILE, signonFileName, NULL);
}

Loading…
Cancel
Save