diff --git a/internal/csi-common/utils.go b/internal/csi-common/utils.go index 3b502b507..5e2218486 100644 --- a/internal/csi-common/utils.go +++ b/internal/csi-common/utils.go @@ -82,33 +82,6 @@ func NewControllerServiceCapability(ctrlCap csi.ControllerServiceCapability_RPC_ } } -// RunNodePublishServer starts node server. -func RunNodePublishServer(endpoint, hstOption string, d *CSIDriver, ns csi.NodeServer, m bool) { - ids := NewDefaultIdentityServer(d) - - s := NewNonBlockingGRPCServer() - s.Start(endpoint, hstOption, ids, nil, ns, m) - s.Wait() -} - -// RunControllerPublishServer starts controller server. -func RunControllerPublishServer(endpoint, hstOption string, d *CSIDriver, cs csi.ControllerServer, m bool) { - ids := NewDefaultIdentityServer(d) - - s := NewNonBlockingGRPCServer() - s.Start(endpoint, hstOption, ids, cs, nil, m) - s.Wait() -} - -// RunControllerandNodePublishServer starts both controller and node server. -func RunControllerandNodePublishServer(endpoint, hstOption string, d *CSIDriver, cs csi.ControllerServer, ns csi.NodeServer, m bool) { - ids := NewDefaultIdentityServer(d) - - s := NewNonBlockingGRPCServer() - s.Start(endpoint, hstOption, ids, cs, ns, m) - s.Wait() -} - func getReqID(req interface{}) string { // if req is nil empty string will be returned reqID := ""