From 349b9e9dee0f41f03140aaf3a00673ec728e366c Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Sun, 19 Jan 2020 13:55:03 +0100 Subject: [PATCH] Remove commented out debugs --- src/event.cpp | 2 -- src/exec.cpp | 1 - src/expand.cpp | 7 ------- src/highlight.cpp | 2 -- src/postfork.cpp | 3 --- 5 files changed, 15 deletions(-) diff --git a/src/event.cpp b/src/event.cpp index f3bae6d13..e20d4567e 100644 --- a/src/event.cpp +++ b/src/event.cpp @@ -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 interactive{&ld.is_interactive, false}; diff --git a/src/exec.cpp b/src/exec.cpp index 026bfa4ef..06b7237c0 100644 --- a/src/exec.cpp +++ b/src/exec.cpp @@ -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(cenvv); diff --git a/src/expand.cpp b/src/expand.cpp index e76227e10..03bb97e69 100644 --- a/src/expand.cpp +++ b/src/expand.cpp @@ -194,7 +194,6 @@ static size_t parse_slice(const wchar_t *in, wchar_t **end_ptr, std::vector 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 -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 %ls ->%ls", path, tilde, unescaped ); - for (auto c : path_with_magic) { switch (c) { case PROCESS_EXPAND_SELF: diff --git a/src/postfork.cpp b/src/postfork.cpp index dcdb78a08..c3e0a77b2 100644 --- a/src/postfork.cpp +++ b/src/postfork.cpp @@ -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; } }