From 6a17e98488bd0d043ef9c490444ae0b54b86310c Mon Sep 17 00:00:00 2001 From: David Rebbe Date: Wed, 4 Dec 2024 12:36:04 -0500 Subject: [PATCH] remove check that isn't needed --- api/icsneo/icsneo.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/api/icsneo/icsneo.cpp b/api/icsneo/icsneo.cpp index 7ad4584..37ccfc1 100644 --- a/api/icsneo/icsneo.cpp +++ b/api/icsneo/icsneo.cpp @@ -424,10 +424,6 @@ ICSNEO_API icsneo_error_t icsneo_get_events(icsneo_event_t** events, uint32_t* e // Get the mininum number of events auto min_size = std::minmax(static_cast(global_events.size()), *events_count).first; *events_count = min_size; - // GetEvents uses 0 as unlimited, where the API can't allocate anything. - if (min_size == 0) { - return icsneo_error_success; - } // Copy the events into the global event container for (uint32_t i = 0; i < min_size; i++) { auto e = icsneo_event_t {