diff options
author | Kevin Ballard <kevin@sb.org> | 2014-09-30 17:20:46 -0700 |
---|---|---|
committer | Kevin Ballard <kevin@sb.org> | 2014-09-30 17:20:46 -0700 |
commit | 489fb7ec3f13e21d0dd157c0d589e07dfb6ee271 (patch) | |
tree | 77039f60fa409b852bf751703a82c9d77efd287d /exec.cpp | |
parent | 51527612d3162fde31c41d7183320365856f2aae (diff) |
Expunge INTERNAL_BLOCK from the codebase
It's a relic of the old parser, and isn't used anymore.
Diffstat (limited to 'exec.cpp')
-rw-r--r-- | exec.cpp | 14 |
1 files changed, 1 insertions, 13 deletions
@@ -909,7 +909,6 @@ void exec_job(parser_t &parser, job_t *j) break; } - case INTERNAL_BLOCK: case INTERNAL_BLOCK_NODE: { if (p->next) @@ -930,17 +929,7 @@ void exec_job(parser_t &parser, job_t *j) if (! exec_error) { - if (p->type == INTERNAL_BLOCK) - { - /* The block contents (as in, fish code) are stored in argv0 (ugh) */ - assert(p->argv0() != NULL); - internal_exec_helper(parser, p->argv0(), NODE_OFFSET_INVALID, TOP, process_net_io_chain); - } - else - { - assert(p->type == INTERNAL_BLOCK_NODE); - internal_exec_helper(parser, wcstring(), p->internal_block_node, TOP, process_net_io_chain); - } + internal_exec_helper(parser, wcstring(), p->internal_block_node, TOP, process_net_io_chain); } break; } @@ -1108,7 +1097,6 @@ void exec_job(parser_t &parser, job_t *j) switch (p->type) { - case INTERNAL_BLOCK: case INTERNAL_BLOCK_NODE: case INTERNAL_FUNCTION: { |