aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/parser.h
diff options
context:
space:
mode:
authorGravatar Kurtis Rader <krader@skepticism.us>2016-05-28 22:28:26 -0700
committerGravatar Kurtis Rader <krader@skepticism.us>2016-05-29 22:24:29 -0700
commit5bf1b0e5f500b6b99a866da32dd9002219cac6d6 (patch)
tree4622863e7f28ad7f840d6a7096057286aee4e750 /src/parser.h
parent3d19b549c8d9fc77597d0de95260e90f5dda2dae (diff)
fix random lint issues
This only eliminates errors reported by `make lint`. It shouldn't cause any functional changes. This change does remove several functions that are unused. It also removes the `desc_arr` variable which is both unused and out of date with reality.
Diffstat (limited to 'src/parser.h')
-rw-r--r--src/parser.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/parser.h b/src/parser.h
index 4a682306..d3fd8803 100644
--- a/src/parser.h
+++ b/src/parser.h
@@ -193,8 +193,11 @@ class parser_t {
/// The list of blocks, allocated with new. It's our responsibility to delete these.
std::vector<block_t *> block_stack;
+#if 0
+// TODO: Lint says this isn't used (which is true). Should this be removed?
/// Gets a description of the block stack, for debugging.
wcstring block_stack_description() const;
+#endif
/// List of profile items, allocated with new.
std::vector<profile_item_t *> profile_items;
@@ -269,8 +272,7 @@ class parser_t {
block_t *block_at_index(size_t idx);
/// Returns the current (innermost) block.
- const block_t *current_block() const;
- block_t *current_block();
+ block_t *const current_block();
/// Count of blocks.
size_t block_count() const { return block_stack.size(); }