test: clean up by dropping redundant code
authorInki Dae <inki.dae@samsung.com>
Fri, 12 Apr 2024 00:13:01 +0000 (09:13 +0900)
committerInki Dae <inki.dae@samsung.com>
Fri, 12 Apr 2024 00:13:01 +0000 (09:13 +0900)
Signed-off-by: Inki Dae <inki.dae@samsung.com>
test/services/test_autozoom_on_screen.cpp

index 71da41a18369438b7a2c193f7e58f6a91877d10b..83e6bcb7c3a847a32c01e94d25d95d1011d8d39f 100644 (file)
  */
 
 #include <iostream>
-#include <algorithm>
-#include <memory>
-#include <string.h>
 #include <thread>
-#include <mutex>
-
 #include <opencv2/opencv.hpp>
 
 #include "gtest/gtest.h"
@@ -31,8 +26,6 @@
 using namespace testing;
 using namespace std;
 
-enum class AutozoomState { NONE, IN, IN_DONE, OUT, OUT_DONE, DETECT };
-
 struct Context {
        singleo_service_h handle {};
 };
@@ -63,8 +56,6 @@ void autozoom_callback(void *user_data)
 void user_callback(unsigned char *buffer, unsigned int width, unsigned int height, unsigned int bytes_per_pixel,
                                   void *user_data)
 {
-       Context *context = static_cast<Context *>(user_data);
-
        cv::Mat result(cv::Size(width, height), CV_MAKETYPE(CV_8U, 4), buffer);
 
        singleo_util_visualizer_2d(result, NULL);