]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
util-device: remove unused functions
authorLukas Sismis <lsismis@oisf.net>
Wed, 18 Jan 2023 05:32:00 +0000 (12:32 +0700)
committerVictor Julien <vjulien@oisf.net>
Tue, 24 Jan 2023 09:44:49 +0000 (10:44 +0100)
src/util-device.c
src/util-device.h

index a7ef344e8f28e1a91e24a625d8d8690d29c76327..5eed6abdb5dac7bf371e2c9aa050e877fb8a9fd2 100644 (file)
@@ -191,49 +191,6 @@ const char *LiveGetDeviceName(int number)
     return NULL;
 }
 
-/**
- *  \brief Get the number of pre registered devices
- *
- *  \retval cnt the number of pre registered devices
- */
-int LiveGetDeviceNameCount(void)
-{
-    int i = 0;
-    LiveDeviceName *pd;
-
-    TAILQ_FOREACH(pd, &pre_live_devices, next) {
-        i++;
-    }
-
-    return i;
-}
-
-/**
- *  \brief Get a pointer to the pre device name at idx
- *
- *  \param number idx of the pre device in our list
- *
- *  \retval ptr pointer to the string containing the device
- *  \retval NULL on error
- */
-const char *LiveGetDeviceNameName(int number)
-{
-    int i = 0;
-    LiveDeviceName *pd;
-
-    TAILQ_FOREACH(pd, &pre_live_devices, next) {
-        if (i == number) {
-            return pd->dev;
-        }
-
-        i++;
-    }
-
-    return NULL;
-}
-
-
-
 /** \internal
  *  \brief Shorten a device name that is to long
  *
index ec6fc65bcd395d3626f98cb47299aabbce7d3654..1837915145d1b724f3f1a33697959b591fa9410d 100644 (file)
@@ -61,8 +61,6 @@ typedef struct LiveDeviceName_ {
 void LiveDevRegisterExtension(void);
 
 int LiveRegisterDeviceName(const char *dev);
-int LiveGetDeviceNameCount(void);
-const char *LiveGetDeviceNameName(int number);
 int LiveRegisterDevice(const char *dev);
 int LiveDevUseBypass(LiveDevice *dev);
 void LiveDevSetBypassStats(LiveDevice *dev, uint64_t cnt, int family);