aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2015-02-03 09:43:44 +0200
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2015-02-03 09:43:44 +0200
commit4eaafa045362298adfe61fdd83b47b22211c75d1 (patch)
tree604bce94128877738f67cd1fc264e6a48f0d2cf3
parent5d2f957f3f9dcd88384780876f535b423151f9bf (diff)
downloadpostgresql-4eaafa045362298adfe61fdd83b47b22211c75d1.tar.gz
postgresql-4eaafa045362298adfe61fdd83b47b22211c75d1.zip
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.
-rw-r--r--contrib/fuzzystrmatch/fuzzystrmatch.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/contrib/fuzzystrmatch/fuzzystrmatch.c b/contrib/fuzzystrmatch/fuzzystrmatch.c
index b48edb05ba6..f9508a574fd 100644
--- a/contrib/fuzzystrmatch/fuzzystrmatch.c
+++ b/contrib/fuzzystrmatch/fuzzystrmatch.c
@@ -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,