Skip to content

Commit 3974c4a

Browse files
committed
Remove useless "return;" lines
Discussion: https://postgr.es/m/20191128144653.GA27883@alvherre.pgsql
1 parent 8a7e9e9 commit 3974c4a

File tree

40 files changed

+0
-96
lines changed

40 files changed

+0
-96
lines changed

contrib/fuzzystrmatch/fuzzystrmatch.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -698,8 +698,6 @@ _metaphone(char *word, /* IN */
698698
} /* END FOR */
699699

700700
End_Phoned_Word;
701-
702-
return;
703701
} /* END metaphone */
704702

705703

contrib/ltree/ltxtquery_io.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,6 @@ pushval_asis(QPRS_STATE *state, int type, char *strval, int lenval, uint16 flag)
192192
*(state->curop) = '\0';
193193
state->curop++;
194194
state->sumlen += lenval + 1;
195-
return;
196195
}
197196

198197
#define STACKDEPTH 32

contrib/pg_standby/pg_standby.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,6 @@ CheckForExternalTrigger(void)
545545

546546
fprintf(stderr, "WARNING: invalid content in \"%s\"\n", triggerPath);
547547
fflush(stderr);
548-
return;
549548
}
550549

551550
/*

contrib/pgcrypto/mbuf.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,6 @@ prepare_room(MBuf *mbuf, int block_len)
9494
mbuf->data_end = newbuf + (mbuf->data_end - mbuf->data);
9595
mbuf->read_pos = newbuf + (mbuf->read_pos - mbuf->data);
9696
mbuf->data = newbuf;
97-
98-
return;
9997
}
10098

10199
int

contrib/seg/seg.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -706,8 +706,6 @@ rt_seg_size(SEG *a, float *size)
706706
*size = 0.0;
707707
else
708708
*size = (float) Abs(a->upper - a->lower);
709-
710-
return;
711709
}
712710

713711
Datum

contrib/sepgsql/selinux.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -809,8 +809,6 @@ sepgsql_compute_avd(const char *scontext,
809809
if (avd_ex.auditdeny & av_code_ex)
810810
avd->auditdeny |= av_code;
811811
}
812-
813-
return;
814812
}
815813

816814
/*

src/backend/access/gist/gist.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1088,8 +1088,6 @@ gistFindCorrectParent(Relation r, GISTInsertStack *child)
10881088
LockBuffer(child->parent->buffer, GIST_EXCLUSIVE);
10891089
gistFindCorrectParent(r, child);
10901090
}
1091-
1092-
return;
10931091
}
10941092

10951093
/*

src/backend/access/rmgrdesc/genericdesc.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ generic_desc(StringInfo buf, XLogReaderState *record)
4343
else
4444
appendStringInfo(buf, "offset %u, length %u", offset, length);
4545
}
46-
47-
return;
4846
}
4947

5048
/*

src/backend/access/transam/twophase.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2436,6 +2436,4 @@ PrepareRedoRemove(TransactionId xid, bool giveWarning)
24362436
if (gxact->ondisk)
24372437
RemoveTwoPhaseFile(xid, giveWarning);
24382438
RemoveGXact(gxact);
2439-
2440-
return;
24412439
}

src/backend/access/transam/xact.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3428,7 +3428,6 @@ CheckTransactionBlock(bool isTopLevel, bool throwError, const char *stmtType)
34283428
/* translator: %s represents an SQL statement name */
34293429
errmsg("%s can only be used in transaction blocks",
34303430
stmtType)));
3431-
return;
34323431
}
34333432

34343433
/*

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