Remove DLOGUTIL_SORT_MAX 98/222298/5
authorMichal Bloch <m.bloch@samsung.com>
Mon, 13 Jan 2020 09:17:48 +0000 (10:17 +0100)
committerMichal Bloch <m.bloch@partner.samsung.com>
Thu, 16 Jan 2020 12:19:00 +0000 (12:19 +0000)
Only used in a test and is unwanted in an API

Change-Id: Ic186c6de6150bc004c5033469a3efe2f44c52901

include/queued_entry.h
src/tests/test_logger_log_storage.c

index 98e9846..ce05f39 100644 (file)
@@ -32,7 +32,6 @@ typedef enum dlogutil_sorting_order {
        DLOGUTIL_SORT_SENT_REAL,
        DLOGUTIL_SORT_RECV_MONO,
        DLOGUTIL_SORT_RECV_REAL,
-       DLOGUTIL_SORT_MAX,
        DLOGUTIL_SORT_DEFAULT,
 } dlogutil_sorting_order_e;
 
index e11ca6a..f949100 100644 (file)
@@ -249,7 +249,7 @@ int main()
                const int CNT = 1000;
                callback_count = 0;
 
-               for (int i = 0; i < DLOGUTIL_SORT_MAX; i++) {
+               for (int i = 0; i < DLOGUTIL_SORT_DEFAULT; i++) {
                        log_storage *s = log_storage_create(1000000, i);
                        assert(s);
                        log_storage_reader *r = log_storage_new_reader(s, false, dont_call_this_callback, NULL);