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

Lines changed: 0 additions & 5 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy