ctdb-client: Remove unused function
authorVinit Agnihotri <vagnihotri@ddn.com>
Thu, 26 Oct 2023 10:09:07 +0000 (03:09 -0700)
committerVolker Lendecke <vl@samba.org>
Wed, 6 Mar 2024 06:05:38 +0000 (06:05 +0000)
Signed-off-by: Vinit Agnihotri <vagnihotri@ddn.com>
Reviewed-by: Martin Schwenke <mschwenke@ddn.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
ctdb/client/client_control_sync.c
ctdb/client/client_sync.h

index c786fc7dbcab34f7a0709892489d21d740f8480f..18bd411b64c63c1ec88ebd2610152ea4de1b2fc0 100644 (file)
@@ -2110,34 +2110,6 @@ int ctdb_ctrl_reload_public_ips(TALLOC_CTX *mem_ctx, struct tevent_context *ev,
        return 0;
 }
 
-int ctdb_ctrl_ipreallocated(TALLOC_CTX *mem_ctx, struct tevent_context *ev,
-                           struct ctdb_client_context *client,
-                           int destnode, struct timeval timeout)
-{
-       struct ctdb_req_control request;
-       struct ctdb_reply_control *reply;
-       int ret;
-
-       ctdb_req_control_ipreallocated(&request);
-       ret = ctdb_client_control(mem_ctx, ev, client, destnode, timeout,
-                                 &request, &reply);
-       if (ret != 0) {
-               DEBUG(DEBUG_ERR,
-                     ("Control IPREALLOCATED failed to node %u, ret=%d\n",
-                      destnode, ret));
-               return ret;
-       }
-
-       ret = ctdb_reply_control_ipreallocated(reply);
-       if (ret != 0) {
-               DEBUG(DEBUG_ERR,
-                     ("Control IPREALLOCATED failed, ret=%d\n", ret));
-               return ret;
-       }
-
-       return 0;
-}
-
 int ctdb_ctrl_get_runstate(TALLOC_CTX *mem_ctx, struct tevent_context *ev,
                           struct ctdb_client_context *client,
                           int destnode, struct timeval timeout,
index 618879e3216236a2287db3ee37e49f76218bf9cd..2d168e02dfec27e92aa657b16882e25f684b2eb2 100644 (file)
@@ -386,10 +386,6 @@ int ctdb_ctrl_reload_public_ips(TALLOC_CTX *mem_ctx, struct tevent_context *ev,
                                struct ctdb_client_context *client,
                                int destnode, struct timeval timeout);
 
-int ctdb_ctrl_ipreallocated(TALLOC_CTX *mem_ctx, struct tevent_context *ev,
-                           struct ctdb_client_context *client,
-                           int destnode, struct timeval timeout);
-
 int ctdb_ctrl_get_runstate(TALLOC_CTX *mem_ctx, struct tevent_context *ev,
                           struct ctdb_client_context *client,
                           int destnode, struct timeval timeout,