From addaf9f0a445ac7e095d0cef102070b8f6c483f5 Mon Sep 17 00:00:00 2001 From: Katharina Xenia Kufieta Date: Wed, 22 Mar 2023 09:43:29 -0400 Subject: [PATCH] Remove unused ctx (#182) --- sensors/depth/depth.go | 2 +- sensors/lidar/lidar.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sensors/depth/depth.go b/sensors/depth/depth.go index 4c2b738b..4ce3c033 100644 --- a/sensors/depth/depth.go +++ b/sensors/depth/depth.go @@ -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 diff --git a/sensors/lidar/lidar.go b/sensors/lidar/lidar.go index 6dc2ebd1..58fac8a9 100644 --- a/sensors/lidar/lidar.go +++ b/sensors/lidar/lidar.go @@ -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