From 269d4d3d58dbf452b79b2fc859f2fe57c28ad453 Mon Sep 17 00:00:00 2001 From: Bryan Frimin Date: Sun, 1 Feb 2026 22:01:30 +0100 Subject: [PATCH] Remove deadcode Signed-off-by: Bryan Frimin --- pkg/iam/organization_service.go | 41 --------------------------------- 1 file changed, 41 deletions(-) diff --git a/pkg/iam/organization_service.go b/pkg/iam/organization_service.go index d73285497..2a0d8cdf4 100644 --- a/pkg/iam/organization_service.go +++ b/pkg/iam/organization_service.go @@ -1739,47 +1739,6 @@ func (s OrganizationService) GetSCIMBridgeByOrganizationID(ctx context.Context, return bridge, nil } -func (s OrganizationService) LinkConnectorToSCIMBridge( - ctx context.Context, - bridgeID gid.GID, - connectorID gid.GID, -) (*coredata.SCIMBridge, error) { - var ( - scope = coredata.NewScopeFromObjectID(bridgeID) - bridge = &coredata.SCIMBridge{} - ) - - err := s.pg.WithTx( - ctx, - func(tx pg.Conn) error { - err := bridge.LoadByID(ctx, tx, scope, bridgeID) - if err != nil { - if err == coredata.ErrResourceNotFound { - return NewSCIMBridgeNotFoundError(bridgeID) - } - return fmt.Errorf("cannot load SCIM bridge: %w", err) - } - - // Update the bridge with the connector ID - bridge.ConnectorID = &connectorID - bridge.State = coredata.SCIMBridgeStateActive - bridge.UpdatedAt = time.Now() - - if err := bridge.Update(ctx, tx, scope); err != nil { - return fmt.Errorf("cannot update SCIM bridge: %w", err) - } - - return nil - }, - ) - - if err != nil { - return nil, err - } - - return bridge, nil -} - func (s OrganizationService) CreateSCIMBridge( ctx context.Context, organizationID gid.GID,