Skip to content
This repository has been archived by the owner on Jul 10, 2023. It is now read-only.

Commit

Permalink
Remove unused ctx (#182)
Browse files Browse the repository at this point in the history
  • Loading branch information
kkufieta authored Mar 22, 2023
1 parent 519072a commit addaf9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sensors/depth/depth.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type Depth struct {
}

// New creates a new Depth sensor based on the sensor definition and the service config.
func New(ctx context.Context, deps registry.Dependencies, sensors []string, sensorIndex int) (Depth, error) {
func New(deps registry.Dependencies, sensors []string, sensorIndex int) (Depth, error) {
name, err := utils.GetName(sensors, sensorIndex)
if err != nil {
return Depth{}, err
Expand Down
2 changes: 1 addition & 1 deletion sensors/lidar/lidar.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type Lidar struct {
}

// New creates a new Lidar sensor based on the sensor definition and the service config.
func New(ctx context.Context, deps registry.Dependencies, sensors []string, sensorIndex int) (Lidar, error) {
func New(deps registry.Dependencies, sensors []string, sensorIndex int) (Lidar, error) {
name, err := utils.GetName(sensors, sensorIndex)
if err != nil {
return Lidar{}, err
Expand Down

0 comments on commit addaf9f

Please sign in to comment.