diff --git a/src/common/slurm_protocol_api.c b/src/common/slurm_protocol_api.c index f94edd389b84591da48ef24b9d0f5513ab934e37..88386bc2246d9cd1c1ba082f755b78ed6f321d57 100644 --- a/src/common/slurm_protocol_api.c +++ b/src/common/slurm_protocol_api.c @@ -2632,18 +2632,6 @@ slurm_fd_t slurm_open_controller_conn_spec(enum controller_id dest) return rc; } -/* gets the slurm_addr_t of the specified controller - * primary or secondary slurmctld message engine - * IN dest - controller to contact, primary or secondary - * OUT addr - slurm_addr_t to the specified controller - */ -void slurm_get_controller_addr_spec(enum controller_id dest, slurm_addr_t *addr) -{ - addr = (dest == PRIMARY_CONTROLLER) ? - &proto_conf->primary_controller : - &proto_conf->secondary_controller; -} - /* In the bsd implmentation maps directly to a close call, to close * the socket that was accepted * IN open_fd - an open file descriptor to close diff --git a/src/common/slurm_protocol_api.h b/src/common/slurm_protocol_api.h index c358eef3703654b576abe0ef5c16edef63a462be..d006459ed938084d79e37640cdaf1babb230e6ed 100644 --- a/src/common/slurm_protocol_api.h +++ b/src/common/slurm_protocol_api.h @@ -923,13 +923,6 @@ int slurm_send_node_msg(slurm_fd_t open_fd, slurm_msg_t *msg); */ extern slurm_fd_t slurm_open_controller_conn(slurm_addr_t *addr); extern slurm_fd_t slurm_open_controller_conn_spec(enum controller_id dest); -/* gets the slurm_addr_t of the specified controller - * primary or secondary slurmctld message engine - * IN dest - controller to contact, primary or secondary - * OUT addr - slurm_addr_t to the specified controller - */ -void slurm_get_controller_addr_spec(enum controller_id dest, - slurm_addr_t *addr); /* In the bsd socket implementation it creates a SOCK_STREAM socket * and calls connect on it a SOCK_DGRAM socket called with connect