1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-25 20:23:07 +03:00

Remove useless "return;" lines

Discussion: https://postgr.es/m/20191128144653.GA27883@alvherre.pgsql
This commit is contained in:
Alvaro Herrera
2019-11-28 16:48:37 -03:00
parent 8a7e9e9dad
commit 3974c4a724
40 changed files with 0 additions and 96 deletions

View File

@@ -529,7 +529,6 @@ void
rtoday(date * d)
{
PGTYPESdate_today(d);
return;
}
int
@@ -959,7 +958,6 @@ rupshift(char *str)
for (; *str != '\0'; str++)
if (islower((unsigned char) *str))
*str = toupper((unsigned char) *str);
return;
}
int

View File

@@ -152,7 +152,6 @@ PGTYPESdate_today(date * d)
GetCurrentDateTime(&ts);
if (errno == 0)
*d = date2j(ts.tm_year, ts.tm_mon, ts.tm_mday) - date2j(2000, 1, 1);
return;
}
#define PGTYPES_DATE_NUM_MAX_DIGITS 20 /* should suffice for most

View File

@@ -624,8 +624,6 @@ j2date(int jd, int *year, int *month, int *day)
quad = julian * 2141 / 65536;
*day = julian - 7834 * quad / 256;
*month = (quad + 10) % 12 + 1;
return;
} /* j2date() */
/* DecodeSpecial()

View File

@@ -297,7 +297,6 @@ PGTYPEStimestamp_current(timestamp * ts)
GetCurrentDateTime(&tm);
if (errno == 0)
tm2timestamp(&tm, 0, NULL, ts);
return;
}
static int

View File

@@ -279,7 +279,6 @@ pg_fe_scram_exchange(void *opaq, char *input, int inputlen,
error:
*done = true;
*success = false;
return;
}
/*