diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2020-09-02 15:17:33 +0200 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2020-09-02 15:17:33 +0200 |
commit | fd5e3b291415e6cf55408af1282585c945464c8f (patch) | |
tree | 9a00c145d4a09b7a2d5a6fb814b96e632252433c /src | |
parent | 07f386ede026ae8c3f2adeba0c22139df19bf2ff (diff) | |
download | postgresql-fd5e3b291415e6cf55408af1282585c945464c8f.tar.gz postgresql-fd5e3b291415e6cf55408af1282585c945464c8f.zip |
Remove unused parameter
unused since 39bd3fd1db6f3aa3764d4a1bebcd71c4e9c00281
Discussion: https://www.postgresql.org/message-id/flat/511bb100-f829-ba21-2f10-9f952ec06ead%402ndquadrant.com
Diffstat (limited to 'src')
-rw-r--r-- | src/pl/plpgsql/src/pl_gram.y | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/pl/plpgsql/src/pl_gram.y b/src/pl/plpgsql/src/pl_gram.y index 5a7e1a44442..8227bf0449f 100644 --- a/src/pl/plpgsql/src/pl_gram.y +++ b/src/pl/plpgsql/src/pl_gram.y @@ -107,7 +107,7 @@ static void check_labels(const char *start_label, const char *end_label, int end_location); static PLpgSQL_expr *read_cursor_args(PLpgSQL_var *cursor, - int until, const char *expected); + int until); static List *read_raise_options(void); static void check_raise_parameters(PLpgSQL_stmt_raise *stmt); @@ -1414,8 +1414,7 @@ for_control : for_variable K_IN /* collect cursor's parameters if any */ new->argquery = read_cursor_args(cursor, - K_LOOP, - "LOOP"); + K_LOOP); /* create loop's private RECORD variable */ new->var = (PLpgSQL_variable *) @@ -2129,7 +2128,7 @@ stmt_open : K_OPEN cursor_variable else { /* predefined cursor query, so read args */ - new->argquery = read_cursor_args($2, ';', ";"); + new->argquery = read_cursor_args($2, ';'); } $$ = (PLpgSQL_stmt *)new; @@ -3773,7 +3772,7 @@ check_labels(const char *start_label, const char *end_label, int end_location) * parens). */ static PLpgSQL_expr * -read_cursor_args(PLpgSQL_var *cursor, int until, const char *expected) +read_cursor_args(PLpgSQL_var *cursor, int until) { PLpgSQL_expr *expr; PLpgSQL_row *row; |