aboutsummaryrefslogtreecommitdiffhomepage
path: root/builtin.c
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-10-05 09:32:06 +1000
committerGravatar axel <axel@liljencrantz.se>2006-10-05 09:32:06 +1000
commit873fd833073ddf1afa57db321e438e19d5e6186e (patch)
tree7131ced91fbe6367db5f425d0a93e8e6de77bbf7 /builtin.c
parentd1078f8582bff8365d233664458c509305350f5c (diff)
Drop the optional checking of block type for the end builtin
darcs-hash:20061004233206-ac50b-cf72c879b4b58c8e5ba4e1dff5c2746ca2e8844f.gz
Diffstat (limited to 'builtin.c')
-rw-r--r--builtin.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/builtin.c b/builtin.c
index 3d947c20..6c343ae8 100644
--- a/builtin.c
+++ b/builtin.c
@@ -2759,37 +2759,6 @@ static int builtin_end( wchar_t **argv )
variables in the current loop scope won't die between laps.
*/
int kill_block = 1;
- wchar_t *type = argv[1];
- if( type )
- {
- int t = parser_get_block_type( type );
- if( t != current_block->type )
- {
- if( t == -1 )
- {
- sb_printf( sb_err,
- BUILTIN_END_BLOCK_UNKNOWN,
- argv[0],
- type,
- parser_get_block_command( current_block->type ) );
- }
- else
- {
- sb_printf( sb_err,
- BUILTIN_END_BLOCK_MISMATCH,
- argv[0],
- type,
- parser_get_block_command( current_block->type ) );
- }
-
- builtin_print_help( argv[0], sb_err );
- return 1;
-
-
- }
-
- }
-
switch( current_block->type )
{