fix: remove unused local variables (#44824)
* chore: remove unused local non-trivial variable relaunch_executable became unused in June 2016 in0d066de5
Co-authored-by: Charles Kerr <charles@charleskerr.com> * chore: only declare program_name local variable if used We declared it everywhere but only used it on Windows Co-authored-by: Charles Kerr <charles@charleskerr.com> * chore: remove unused local non-trivial variable path from UnregisterXWindow it became unused in 2020 by72a08926
Co-authored-by: Charles Kerr <charles@charleskerr.com> --------- Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Charles Kerr <charles@charleskerr.com>
This commit is contained in:
parent
6626557902
commit
4a3b3a6aee
3 changed files with 1 additions and 4 deletions
|
@ -1010,8 +1010,6 @@ bool App::RequestSingleInstanceLock(gin::Arguments* args) {
|
|||
if (HasSingleInstanceLock())
|
||||
return true;
|
||||
|
||||
std::string program_name = electron::Browser::Get()->GetName();
|
||||
|
||||
base::FilePath user_dir;
|
||||
base::PathService::Get(chrome::DIR_USER_DATA, &user_dir);
|
||||
// The user_dir may not have been created yet.
|
||||
|
@ -1022,6 +1020,7 @@ bool App::RequestSingleInstanceLock(gin::Arguments* args) {
|
|||
blink::CloneableMessage additional_data_message;
|
||||
args->GetNext(&additional_data_message);
|
||||
#if BUILDFLAG(IS_WIN)
|
||||
const std::string program_name = electron::Browser::Get()->GetName();
|
||||
bool app_is_sandboxed =
|
||||
IsSandboxEnabled(base::CommandLine::ForCurrentProcess());
|
||||
process_singleton_ = std::make_unique<ProcessSingleton>(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue