From 5c2d45edb95f9167c0c5d76b6b4d2def6f4de902 Mon Sep 17 00:00:00 2001 From: Nico Stuurman Date: Mon, 23 Dec 2024 10:16:37 -0800 Subject: [PATCH] ArduinoCounter: cleanup of remnants. --- DeviceAdapters/ArduinoCounter/ArduinoCounter.cpp | 2 -- DeviceAdapters/ArduinoCounter/ArduinoCounter.h | 1 - 2 files changed, 3 deletions(-) diff --git a/DeviceAdapters/ArduinoCounter/ArduinoCounter.cpp b/DeviceAdapters/ArduinoCounter/ArduinoCounter.cpp index 53ceb5f2a..420fc266f 100644 --- a/DeviceAdapters/ArduinoCounter/ArduinoCounter.cpp +++ b/DeviceAdapters/ArduinoCounter/ArduinoCounter.cpp @@ -65,7 +65,6 @@ MODULE_API void DeleteDevice(MM::Device* pDevice) ArduinoCounterCamera::ArduinoCounterCamera() : - imageBuffer_(0), nrCamerasInUse_(0), initialized_(false), invert_(false) @@ -101,7 +100,6 @@ ArduinoCounterCamera::~ArduinoCounterCamera() int ArduinoCounterCamera::Shutdown() { - delete imageBuffer_; // Rely on the cameras to shut themselves down return DEVICE_OK; } diff --git a/DeviceAdapters/ArduinoCounter/ArduinoCounter.h b/DeviceAdapters/ArduinoCounter/ArduinoCounter.h index 41f05f022..b6eab6f59 100644 --- a/DeviceAdapters/ArduinoCounter/ArduinoCounter.h +++ b/DeviceAdapters/ArduinoCounter/ArduinoCounter.h @@ -121,7 +121,6 @@ class ArduinoCounterCamera : public CCameraBase private: int Logical2Physical(int logical); bool ImageSizesAreEqual(); - unsigned char* imageBuffer_; int startCommunication(); int startCounting(int number); int stopCounting();