Remove dead code.
authorTatsuo Ishii <ishii@postgresql.org>
Sat, 27 Jul 2024 10:22:13 +0000 (19:22 +0900)
committerTatsuo Ishii <ishii@postgresql.org>
Sat, 27 Jul 2024 10:22:13 +0000 (19:22 +0900)
Remove dead code surrounded by "#ifdef NOT_USED".

src/protocol/pool_process_query.c

index f27773a3ea09f82bb6e95a97322b4f9c29f00a16..2eb877f9f8dd9115193bc821a1257177ecff7f1f 100644 (file)
@@ -3,7 +3,7 @@
  * pgpool: a language independent connection pool server for PostgreSQL
  * written by Tatsuo Ishii
  *
- * Copyright (c) 2003-2023     PgPool Global Development Group
+ * Copyright (c) 2003-2024     PgPool Global Development Group
  *
  * Permission to use, copy, modify, and distribute this software and
  * its documentation for any purpose and without fee is hereby
@@ -740,20 +740,8 @@ SimpleForwardToFrontend(char kind, POOL_CONNECTION * frontend,
        {
                for (i = 0; i < NUM_BACKENDS; i++)
                {
-#ifdef NOT_USED
-                       if (use_sync_map == POOL_SYNC_MAP_EMPTY)
-                               continue;
-#endif
-
                        if (VALID_BACKEND(i) && !IS_MAIN_NODE_ID(i))
                        {
-#ifdef NOT_USED
-                               if (use_sync_map == POOL_SYNC_MAP_IS_VALID && !pool_is_set_sync_map(i))
-                               {
-                                       continue;
-                               }
-#endif
-
                                pool_read(CONNECTION(backend, i), &len, sizeof(len));
 
                                len = ntohl(len);