aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/parser.cpp
diff options
context:
space:
mode:
authorGravatar Kurtis Rader <krader@skepticism.us>2016-04-03 19:02:46 -0700
committerGravatar Kurtis Rader <krader@skepticism.us>2016-04-03 19:02:46 -0700
commit9dd6873e5855f69b01f2e3705a49a4231c992e71 (patch)
tree7fc073cc4780b381285567b1df1b6caf9966bb00 /src/parser.cpp
parent3f1fc332e7451187b1b9806f544bc8199fa412a8 (diff)
lint: remove or comment out unused functions
Cppcheck has identified a lot of unused functions. This removes funcs that are unlikely to ever be used. Others that might be useful for debugging I've commented out with "#if 0".
Diffstat (limited to 'src/parser.cpp')
-rw-r--r--src/parser.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/parser.cpp b/src/parser.cpp
index 2097aecf..2862df60 100644
--- a/src/parser.cpp
+++ b/src/parser.cpp
@@ -842,8 +842,6 @@ int parser_t::eval_acquiring_tree(const wcstring &cmd, const io_chain_t &io, enu
return 0;
}
- //print_stderr(block_stack_description());
-
/* Determine the initial eval level. If this is the first context, it's -1; otherwise it's the eval level of the top context. This is sort of wonky because we're stitching together a global notion of eval level from these separate objects. A better approach would be some profile object that all contexts share, and that tracks the eval levels on its own. */
int exec_eval_level = (execution_contexts.empty() ? -1 : execution_contexts.back()->current_eval_level());