mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 17:38:00 +00:00
Remove cmdline_session_name.
This mutable global was never actually used at all, _even_ in history!
Commit 1a03fa929
introduced it, as part of the jump list support, but
even that commit never _read_ from the variable - it only assigned to
it. I have to guess that it was part of an earlier draft of the jump
lists patch and ended up orphaned in the final version.
This commit is contained in:
parent
575ee4f8fc
commit
492e6b1187
@ -391,7 +391,6 @@ int cmdline_process_param(const char *p, char *value,
|
||||
* saved. */
|
||||
do_defaults(value, conf);
|
||||
loaded_session = true;
|
||||
cmdline_session_name = dupstr(value);
|
||||
return 2;
|
||||
}
|
||||
if (!strcmp(p, "-ssh")) {
|
||||
|
4
putty.h
4
putty.h
@ -590,10 +590,6 @@ GLOBAL int default_port;
|
||||
* This is set true by cmdline.c iff a session is loaded with "-load".
|
||||
*/
|
||||
GLOBAL bool loaded_session;
|
||||
/*
|
||||
* This is set to the name of the loaded session.
|
||||
*/
|
||||
GLOBAL char *cmdline_session_name;
|
||||
|
||||
/*
|
||||
* Mechanism for getting text strings such as usernames and passwords
|
||||
|
Loading…
Reference in New Issue
Block a user