mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 21:33:09 +00:00
Remove commented out debugs
This commit is contained in:
parent
b09ae82ecf
commit
349b9e9dee
5 changed files with 0 additions and 15 deletions
|
@ -278,8 +278,6 @@ static void event_fire_internal(parser_t &parser, const event_t &event) {
|
|||
buffer.append(escape_string(arg, ESCAPE_ALL));
|
||||
}
|
||||
|
||||
// debug( 1, L"Event handler fires command '%ls'", buffer.c_str() );
|
||||
|
||||
// Event handlers are not part of the main flow of code, so they are marked as
|
||||
// non-interactive.
|
||||
scoped_push<bool> interactive{&ld.is_interactive, false};
|
||||
|
|
|
@ -107,7 +107,6 @@ static void safe_launch_process(process_t *p, const char *actual_cmd, const char
|
|||
const char *const *cenvv) {
|
||||
UNUSED(p);
|
||||
int err;
|
||||
// debug( 1, L"exec '%ls'", p->argv[0] );
|
||||
|
||||
// This function never returns, so we take certain liberties with constness.
|
||||
char *const *envv = const_cast<char *const *>(cenvv);
|
||||
|
|
|
@ -194,7 +194,6 @@ static size_t parse_slice(const wchar_t *in, wchar_t **end_ptr, std::vector<long
|
|||
if (errno > 0) {
|
||||
return pos;
|
||||
}
|
||||
// debug( 0, L"Push idx %d", tmp );
|
||||
|
||||
long i1 = tmp > -1 ? tmp : size + tmp + 1;
|
||||
pos = end - in;
|
||||
|
@ -210,7 +209,6 @@ static size_t parse_slice(const wchar_t *in, wchar_t **end_ptr, std::vector<long
|
|||
}
|
||||
pos = end - in;
|
||||
|
||||
// debug( 0, L"Push range %d %d", tmp, tmp1 );
|
||||
long i2 = tmp1 > -1 ? tmp1 : size + tmp1 + 1;
|
||||
// Skip sequences that are entirely outside.
|
||||
// This means "17..18" expands to nothing if there are less than 17 elements.
|
||||
|
@ -229,7 +227,6 @@ static size_t parse_slice(const wchar_t *in, wchar_t **end_ptr, std::vector<long
|
|||
i1 = i1 < size ? i1 : size;
|
||||
i2 = i2 < size ? i2 : size;
|
||||
}
|
||||
// debug( 0, L"Push range idx %d %d", i1, i2 );
|
||||
for (long jjj = i1; jjj * direction <= i2 * direction; jjj += direction) {
|
||||
// FLOGF(error, L"Expand range [subst]: %i\n", jjj);
|
||||
idx.push_back(jjj);
|
||||
|
@ -237,7 +234,6 @@ static size_t parse_slice(const wchar_t *in, wchar_t **end_ptr, std::vector<long
|
|||
continue;
|
||||
}
|
||||
|
||||
// debug( 0, L"Push idx %d", tmp );
|
||||
literal_zero_index = literal_zero_index && tmp == 0;
|
||||
idx.push_back(i1);
|
||||
}
|
||||
|
@ -640,9 +636,6 @@ static bool expand_cmdsubst(wcstring input, parser_t &parser, completion_list_t
|
|||
idx = idx - 1;
|
||||
|
||||
sub_res2.push_back(sub_res.at(idx));
|
||||
// debug( 0, L"Pushing item '%ls' with index %d onto sliced result", al_get(
|
||||
// sub_res, idx ), idx );
|
||||
// sub_res[idx] = 0; // ??
|
||||
}
|
||||
sub_res = std::move(sub_res2);
|
||||
}
|
||||
|
|
|
@ -215,8 +215,6 @@ bool is_potential_path(const wcstring &potential_path_fragment, const wcstring_l
|
|||
wcstring path_with_magic(potential_path_fragment);
|
||||
if (flags & PATH_EXPAND_TILDE) expand_tilde(path_with_magic, vars);
|
||||
|
||||
// debug( 1, L"%ls -> %ls ->%ls", path, tilde, unescaped );
|
||||
|
||||
for (auto c : path_with_magic) {
|
||||
switch (c) {
|
||||
case PROCESS_EXPAND_SELF:
|
||||
|
|
|
@ -374,9 +374,6 @@ void safe_report_exec_error(int err, const char *actual_cmd, const char *const *
|
|||
default: {
|
||||
const char *err = safe_strerror(errno);
|
||||
debug_safe(0, "exec: %s", err);
|
||||
|
||||
// FLOGF(error, L"The file '%ls' is marked as an executable but could not be run by the
|
||||
// operating system.", p->actual_cmd);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue