mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-30 14:53:11 +00:00
Cleanup
This commit is contained in:
parent
96c9cb369b
commit
1d455be9fa
1 changed files with 0 additions and 5 deletions
|
@ -431,9 +431,6 @@ int main(int argc, char **argv) {
|
||||||
|
|
||||||
setlocale(LC_ALL, "");
|
setlocale(LC_ALL, "");
|
||||||
|
|
||||||
// struct stat tmp;
|
|
||||||
// stat("----------FISH_HIT_MAIN----------", &tmp);
|
|
||||||
|
|
||||||
const char *dummy_argv[2] = {"fish", nullptr};
|
const char *dummy_argv[2] = {"fish", nullptr};
|
||||||
if (!argv[0]) {
|
if (!argv[0]) {
|
||||||
argv = const_cast<char **>(dummy_argv); //!OCLINT(parameter reassignment)
|
argv = const_cast<char **>(dummy_argv); //!OCLINT(parameter reassignment)
|
||||||
|
@ -491,8 +488,6 @@ int main(int argc, char **argv) {
|
||||||
// If we're not executing, there's no need to find the config.
|
// If we're not executing, there's no need to find the config.
|
||||||
if (!opts.no_exec) {
|
if (!opts.no_exec) {
|
||||||
paths = determine_config_directory_paths(argv[0]);
|
paths = determine_config_directory_paths(argv[0]);
|
||||||
}
|
|
||||||
if (!opts.no_exec) {
|
|
||||||
env_init(&paths, /* do uvars */ !opts.no_config, /* default paths */ opts.no_config);
|
env_init(&paths, /* do uvars */ !opts.no_config, /* default paths */ opts.no_config);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue