Skip to content

Commit 4eaafa0

Browse files
committed
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.
1 parent 5d2f957 commit 4eaafa0

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

contrib/fuzzystrmatch/fuzzystrmatch.c

-5
Original file line numberDiff line numberDiff line change
@@ -280,11 +280,6 @@ metaphone(PG_FUNCTION_ARGS)
280280
errmsg("argument exceeds the maximum length of %d bytes",
281281
MAX_METAPHONE_STRLEN)));
282282

283-
if (!(str_i_len > 0))
284-
ereport(ERROR,
285-
(errcode(ERRCODE_ZERO_LENGTH_CHARACTER_STRING),
286-
errmsg("argument is empty string")));
287-
288283
reqlen = PG_GETARG_INT32(1);
289284
if (reqlen > MAX_METAPHONE_STRLEN)
290285
ereport(ERROR,

0 commit comments

Comments
 (0)