]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
udev-util: drop unused function
authorDavid Tardon <dtardon@redhat.com>
Fri, 5 Jan 2024 14:48:31 +0000 (15:48 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 11 Jan 2024 20:11:18 +0000 (05:11 +0900)
src/shared/udev-util.c
src/shared/udev-util.h

index 5ea03d6740c86016eaa9118052fb2f1cf6d4fa0d..68e594e065c61aa5a332a3a865e9ecf4d2c5773c 100644 (file)
 #include "udev-util.h"
 #include "utf8.h"
 
-int udev_set_max_log_level(char *str) {
-        size_t n;
-
-        /* This may modify input string. */
-
-        if (isempty(str))
-                return 0;
-
-        /* unquote */
-        n = strlen(str);
-        if (n >= 2 &&
-            ((str[0] == '"' && str[n - 1] == '"') ||
-             (str[0] == '\'' && str[n - 1] == '\''))) {
-                str[n - 1] = '\0';
-                str++;
-        }
-
-        /* we set the udev log level here explicitly, this is supposed
-         * to regulate the code in libudev/ and udev/. */
-        return log_set_max_level_from_string(str);
-}
-
 int udev_parse_config(void) {
         int r, log_val = -1;
         const ConfigTableItem config_table[] = {
index 651d335b9698611f31a3c696032d64dc3f1d8a4f..958acc9382a047fff8d2b1eb80a0870a67721c98 100644 (file)
@@ -6,7 +6,6 @@
 #include "hashmap.h"
 #include "time-util.h"
 
-int udev_set_max_log_level(char *str);
 int udev_parse_config(void);
 
 int device_wait_for_initialization(sd_device *device, const char *subsystem, usec_t timeout_usec, sd_device **ret);