diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2014-10-31 01:15:50 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2014-10-31 01:15:50 -0700 |
commit | 7ac593273e25d5ce39104dc1752660a43a29f61d (patch) | |
tree | 1f0a18a2f49a61460ff8d7c1c3de375af37395d4 /parser.h | |
parent | a529fc9d83295fdf9418436b68d056162ba8231b (diff) |
Remove a bunch of dead code identified by cppcheck
Diffstat (limited to 'parser.h')
-rw-r--r-- | parser.h | 21 |
1 files changed, 9 insertions, 12 deletions
@@ -66,6 +66,14 @@ enum block_type_t BREAKPOINT, /**< Breakpoint block */ }; +/** Possible states for a loop */ +enum loop_status_t +{ + LOOP_NORMAL, /**< Current loop block executed as normal */ + LOOP_BREAK, /**< Current loop block should be removed */ + LOOP_CONTINUE, /**< Current loop block should be skipped */ +}; + /** block_t represents a block of commands. */ @@ -93,7 +101,7 @@ public: node_offset_t node_offset; /* Offset of the node */ /** Status for the current loop block. Can be any of the values from the loop_status enum. */ - int loop_status; + enum loop_status_t loop_status; /** The job that is currently evaluated in the specified block. */ job_t *job; @@ -169,17 +177,6 @@ struct breakpoint_block_t : public block_t }; /** - Possible states for a loop -*/ -enum loop_status -{ - LOOP_NORMAL, /**< Current loop block executed as normal */ - LOOP_BREAK, /**< Current loop block should be removed */ - LOOP_CONTINUE, /**< Current loop block should be skipped */ -}; - - -/** Errors that can be generated by the parser */ enum parser_error |