Skip to content

Commit cce2eef

Browse files
authored
RSDK-6444 - Delete MoveOnMapNew (#3554)
1 parent 1f16c04 commit cce2eef

File tree

13 files changed

+53
-895
lines changed

13 files changed

+53
-895
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ require (
8383
go.uber.org/atomic v1.10.0
8484
go.uber.org/multierr v1.11.0
8585
go.uber.org/zap v1.24.0
86-
go.viam.com/api v0.1.258
86+
go.viam.com/api v0.1.266
8787
go.viam.com/test v1.1.1-0.20220913152726-5da9916c08a2
8888
go.viam.com/utils v0.1.60
8989
goji.io v2.0.2+incompatible

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1489,8 +1489,8 @@ go.uber.org/zap v1.18.1/go.mod h1:xg/QME4nWcxGxrpdeYfq7UvYrLh66cuVKdrbD1XF/NI=
14891489
go.uber.org/zap v1.23.0/go.mod h1:D+nX8jyLsMHMYrln8A0rJjFt/T/9/bGgIhAqxv5URuY=
14901490
go.uber.org/zap v1.24.0 h1:FiJd5l1UOLj0wCgbSE0rwwXHzEdAZS6hiiSnxJN/D60=
14911491
go.uber.org/zap v1.24.0/go.mod h1:2kMP+WWQ8aoFoedH3T2sq6iJ2yDWpHbP0f6MQbS9Gkg=
1492-
go.viam.com/api v0.1.258 h1:2m2uTNhr2EiOs3HCjG+enz/LwL2gr1lmwFVoTT/23gM=
1493-
go.viam.com/api v0.1.258/go.mod h1:msa4TPrMVeRDcG4YzKA/S6wLEUC7GyHQE973JklrQ10=
1492+
go.viam.com/api v0.1.266 h1:MRpHv1dvmxLkRKBzWqEe0XiY98w7tOc56bjjaPat6UY=
1493+
go.viam.com/api v0.1.266/go.mod h1:msa4TPrMVeRDcG4YzKA/S6wLEUC7GyHQE973JklrQ10=
14941494
go.viam.com/test v1.1.1-0.20220913152726-5da9916c08a2 h1:oBiK580EnEIzgFLU4lHOXmGAE3MxnVbeR7s1wp/F3Ps=
14951495
go.viam.com/test v1.1.1-0.20220913152726-5da9916c08a2/go.mod h1:XM0tej6riszsiNLT16uoyq1YjuYPWlRBweTPRDanIts=
14961496
go.viam.com/utils v0.1.60 h1:Q1EtxJbTbdvFwDBj4M7uZ/3lLjY63JBrCLlZlYL9VBQ=

services/motion/builtin/builtin.go

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -271,25 +271,6 @@ func (ms *builtIn) MoveOnMap(ctx context.Context, req motion.MoveOnMapReq) (moti
271271
return id, nil
272272
}
273273

274-
func (ms *builtIn) MoveOnMapNew(ctx context.Context, req motion.MoveOnMapReq) (motion.ExecutionID, error) {
275-
if err := ctx.Err(); err != nil {
276-
return uuid.Nil, err
277-
}
278-
ms.mu.RLock()
279-
defer ms.mu.RUnlock()
280-
ms.logger.CDebugf(ctx, "MoveOnMapNew called with %s", req)
281-
282-
// TODO: Deprecated: remove once no motion apis use the opid system
283-
operation.CancelOtherWithLabel(ctx, builtinOpLabel)
284-
285-
id, err := state.StartExecution(ctx, ms.state, req.ComponentName, req, ms.newMoveOnMapRequest)
286-
if err != nil {
287-
return uuid.Nil, err
288-
}
289-
290-
return id, nil
291-
}
292-
293274
type validatedExtra struct {
294275
maxReplans int
295276
replanCostFactor float64

0 commit comments

Comments
 (0)