Remove unused variable 13/319313/1
authorIlho Kim <ilho159.kim@samsung.com>
Mon, 21 Oct 2024 09:49:12 +0000 (18:49 +0900)
committerIlho Kim <ilho159.kim@samsung.com>
Mon, 21 Oct 2024 09:49:12 +0000 (18:49 +0900)
Change-Id: I977309f516c7753775c4bec7404ef21b1ad241a7
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
tests/unittests/test_event.cc

index 32d902f91c0097fe8930ebb9a19901443802e6bd..2b17106471749374f1cd47da2f793fef5cf87957 100644 (file)
@@ -54,12 +54,6 @@ static void _event_cb(const char *event_name, bundle *event_data, void *user_dat
 TEST_F(AppEventTest, add_remove_event_handler) {
   int ret;
   event_handler_h event_handler;
-  char *_appid = nullptr;
-
-  _appid = (char *)malloc(sizeof(char) * 11);
-
-  if (_appid)
-    snprintf(_appid, 10, "%s", "testappid");
 
   EXPECT_CALL(GetMock<EventSystemMock>(),
       eventsystem_register_application_event(_, _, _, _, _)).