mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-05 08:11:15 -03:00
Remove commented out debugs
This commit is contained in:
@@ -278,8 +278,6 @@ static void event_fire_internal(parser_t &parser, const event_t &event) {
|
|||||||
buffer.append(escape_string(arg, ESCAPE_ALL));
|
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
|
// Event handlers are not part of the main flow of code, so they are marked as
|
||||||
// non-interactive.
|
// non-interactive.
|
||||||
scoped_push<bool> interactive{&ld.is_interactive, false};
|
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) {
|
const char *const *cenvv) {
|
||||||
UNUSED(p);
|
UNUSED(p);
|
||||||
int err;
|
int err;
|
||||||
// debug( 1, L"exec '%ls'", p->argv[0] );
|
|
||||||
|
|
||||||
// This function never returns, so we take certain liberties with constness.
|
// This function never returns, so we take certain liberties with constness.
|
||||||
char *const *envv = const_cast<char *const *>(cenvv);
|
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) {
|
if (errno > 0) {
|
||||||
return pos;
|
return pos;
|
||||||
}
|
}
|
||||||
// debug( 0, L"Push idx %d", tmp );
|
|
||||||
|
|
||||||
long i1 = tmp > -1 ? tmp : size + tmp + 1;
|
long i1 = tmp > -1 ? tmp : size + tmp + 1;
|
||||||
pos = end - in;
|
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;
|
pos = end - in;
|
||||||
|
|
||||||
// debug( 0, L"Push range %d %d", tmp, tmp1 );
|
|
||||||
long i2 = tmp1 > -1 ? tmp1 : size + tmp1 + 1;
|
long i2 = tmp1 > -1 ? tmp1 : size + tmp1 + 1;
|
||||||
// Skip sequences that are entirely outside.
|
// Skip sequences that are entirely outside.
|
||||||
// This means "17..18" expands to nothing if there are less than 17 elements.
|
// 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;
|
i1 = i1 < size ? i1 : size;
|
||||||
i2 = i2 < size ? i2 : 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) {
|
for (long jjj = i1; jjj * direction <= i2 * direction; jjj += direction) {
|
||||||
// FLOGF(error, L"Expand range [subst]: %i\n", jjj);
|
// FLOGF(error, L"Expand range [subst]: %i\n", jjj);
|
||||||
idx.push_back(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;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// debug( 0, L"Push idx %d", tmp );
|
|
||||||
literal_zero_index = literal_zero_index && tmp == 0;
|
literal_zero_index = literal_zero_index && tmp == 0;
|
||||||
idx.push_back(i1);
|
idx.push_back(i1);
|
||||||
}
|
}
|
||||||
@@ -640,9 +636,6 @@ static bool expand_cmdsubst(wcstring input, parser_t &parser, completion_list_t
|
|||||||
idx = idx - 1;
|
idx = idx - 1;
|
||||||
|
|
||||||
sub_res2.push_back(sub_res.at(idx));
|
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);
|
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);
|
wcstring path_with_magic(potential_path_fragment);
|
||||||
if (flags & PATH_EXPAND_TILDE) expand_tilde(path_with_magic, vars);
|
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) {
|
for (auto c : path_with_magic) {
|
||||||
switch (c) {
|
switch (c) {
|
||||||
case PROCESS_EXPAND_SELF:
|
case PROCESS_EXPAND_SELF:
|
||||||
|
|||||||
@@ -374,9 +374,6 @@ void safe_report_exec_error(int err, const char *actual_cmd, const char *const *
|
|||||||
default: {
|
default: {
|
||||||
const char *err = safe_strerror(errno);
|
const char *err = safe_strerror(errno);
|
||||||
debug_safe(0, "exec: %s", err);
|
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;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user