Remove unused static function.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Sat, 26 Jun 2021 01:11:27 +0000 (10:11 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Sat, 26 Jun 2021 01:11:27 +0000 (10:11 +0900)
The function free_processInfo() is no longer needed due to the
refactoring c7690453.

src/libs/pcp/pcp.c

index b199da4eca5ef8b907e9bdd6dcf2115bc8031f73..1c5ef57e4e25beafd1d96b576f1efe423ded6f79 100644 (file)
@@ -77,7 +77,6 @@ static void process_error_response(PCPConnInfo * pcpConn, char toc, char *buff);
 
 
 static void setResultSlotCount(PCPConnInfo * pcpConn, unsigned int slotCount);
-static void free_processInfo(struct PCPConnInfo *pcpConn, void *ptr);
 static int     PCPFlush(PCPConnInfo * pcpConn);
 
 static bool getPoolPassFilename(char *pgpassfile);
@@ -1058,25 +1057,6 @@ pcp_process_count(PCPConnInfo * pcpConn)
        return process_pcp_response(pcpConn, 'N');
 }
 
-static void
-free_processInfo(struct PCPConnInfo *pcpConn, void *ptr)
-{
-       ProcessInfo *pi = (ProcessInfo *) ptr;
-
-       if (pcpConn->Pfdebug)
-               fprintf(pcpConn->Pfdebug, "free ProcessInfo structure \n");
-
-       if (pi == NULL)
-       {
-               if (pcpConn->Pfdebug)
-                       fprintf(pcpConn->Pfdebug, "ProcessInfo structure is NULL nothing to free \n");
-               return;
-       }
-       if (pi->connection_info)
-               pfree(pi->connection_info);
-       pfree(pi);
-}
-
 static void
 process_process_info_response(PCPConnInfo * pcpConn, char *buf, int len)
 {