diff options
| author | Neil Conway <neilc@samurai.com> | 2004-01-06 17:36:31 +0000 |
|---|---|---|
| committer | Neil Conway <neilc@samurai.com> | 2004-01-06 17:36:31 +0000 |
| commit | 030f8e731326f39a5438af9ce3adc48479332f8b (patch) | |
| tree | 6c9c32f2eaefdac7b6dc06b2aab24028000802c7 /src/backend | |
| parent | bc028beb166b704d3c3028961dd6905772bf3a2d (diff) | |
| download | postgresql-030f8e731326f39a5438af9ce3adc48479332f8b.tar.gz | |
Remove unused 'noversion' command-line option processing from the
backend.
Diffstat (limited to 'src/backend')
| -rw-r--r-- | src/backend/tcop/postgres.c | 13 | ||||
| -rw-r--r-- | src/backend/utils/init/globals.c | 4 |
2 files changed, 3 insertions, 14 deletions
diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c index c7252637e9..6d32675674 100644 --- a/src/backend/tcop/postgres.c +++ b/src/backend/tcop/postgres.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.381 2003/12/25 03:52:51 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.382 2004/01/06 17:36:31 neilc Exp $ * * NOTES * this is the "main" module of the postgres backend and @@ -2073,7 +2073,6 @@ PostgresMain(int argc, char *argv[], const char *username) /* * Set default values for command-line options. */ - Noversion = false; EchoQuery = false; if (!IsUnderPostmaster) @@ -2104,7 +2103,7 @@ PostgresMain(int argc, char *argv[], const char *username) ctx = debug_context = PGC_POSTMASTER; gucsource = PGC_S_ARGV; /* initial switches came from command line */ - while ((flag = getopt(argc, argv, "A:B:c:CD:d:Eef:FiNOPo:p:S:st:v:W:x:-:")) != -1) + while ((flag = getopt(argc, argv, "A:B:c:D:d:Eef:FiNOPo:p:S:st:v:W:x:-:")) != -1) switch (flag) { case 'A': @@ -2125,14 +2124,6 @@ PostgresMain(int argc, char *argv[], const char *username) SetConfigOption("shared_buffers", optarg, ctx, gucsource); break; - case 'C': - - /* - * don't print version string - */ - Noversion = true; - break; - case 'D': /* PGDATA directory */ if (secure) potential_DataDir = optarg; diff --git a/src/backend/utils/init/globals.c b/src/backend/utils/init/globals.c index b9606a5b46..72c9be4398 100644 --- a/src/backend/utils/init/globals.c +++ b/src/backend/utils/init/globals.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/utils/init/globals.c,v 1.76 2003/11/29 19:52:01 pgsql Exp $ + * $PostgreSQL: pgsql/src/backend/utils/init/globals.c,v 1.77 2004/01/06 17:36:31 neilc Exp $ * * NOTES * Globals used all over the place should be declared here and not @@ -25,8 +25,6 @@ ProtocolVersion FrontendProtocol = PG_PROTOCOL_LATEST; -bool Noversion = false; - volatile bool InterruptPending = false; volatile bool QueryCancelPending = false; volatile bool ProcDiePending = false; |
