mirror of
https://github.com/postgres/postgres.git
synced 2025-11-24 00:23:06 +03:00
Remove dead code in bootstrap
The bootstrap scanner/parser contains code to parse floating point values, but this is not exercised anywhere, so remove it. Reviewed-by: Jim Nasby Discussion: https://postgr.es/m/20170110051119.b5h7i3z5qagy35rb@alvherre.pgsql
This commit is contained in:
@@ -66,7 +66,6 @@ static int yyline = 1; /* line number for error reporting */
|
||||
|
||||
D [0-9]
|
||||
oct \\{D}{D}{D}
|
||||
Exp [Ee][-+]?{D}+
|
||||
id ([A-Za-z0-9_]|{oct}|\-)+
|
||||
sid \"([^\"])*\"
|
||||
arrayid [A-Za-z0-9_]+\[{D}*\]
|
||||
@@ -127,13 +126,6 @@ insert { return(INSERT_TUPLE); }
|
||||
return(ID);
|
||||
}
|
||||
|
||||
(-)?{D}+"."{D}*({Exp})? |
|
||||
(-)?{D}*"."{D}+({Exp})? |
|
||||
(-)?{D}+{Exp} {
|
||||
yylval.str = pstrdup(yytext);
|
||||
return(CONST_P);
|
||||
}
|
||||
|
||||
. {
|
||||
elog(ERROR, "syntax error at line %d: unexpected character \"%s\"", yyline, yytext);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user