Remove dead code.

Commit 13629df changed metaphone() function to return an empty string on
empty input, but it left the old error message in place. It's now dead code.

Michael Paquier, per Coverity warning.
This commit is contained in:
Heikki Linnakangas 2015-02-03 09:43:44 +02:00
parent 5d2f957f3f
commit 4eaafa0453
1 changed files with 0 additions and 5 deletions

View File

@ -280,11 +280,6 @@ metaphone(PG_FUNCTION_ARGS)
errmsg("argument exceeds the maximum length of %d bytes",
MAX_METAPHONE_STRLEN)));
if (!(str_i_len > 0))
ereport(ERROR,
(errcode(ERRCODE_ZERO_LENGTH_CHARACTER_STRING),
errmsg("argument is empty string")));
reqlen = PG_GETARG_INT32(1);
if (reqlen > MAX_METAPHONE_STRLEN)
ereport(ERROR,