mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-23 08:31:16 -03:00
Stop creating subclasses of block_t
Move all block_t creation methods to static methods, and stop creating subclasses (all of which are now empty).
This commit is contained in:
@@ -284,7 +284,7 @@ static void event_fire_internal(const event_t &event) {
|
||||
parser_t &parser = parser_t::principal_parser();
|
||||
auto prev_statuses = parser.get_last_statuses();
|
||||
|
||||
event_block_t *b = parser.push_block<event_block_t>(event);
|
||||
block_t *b = parser.push_block(block_t::event_block(event));
|
||||
parser.eval(buffer, io_chain_t(), TOP);
|
||||
parser.pop_block(b);
|
||||
proc_pop_interactive();
|
||||
|
||||
Reference in New Issue
Block a user