From: David Tardon Date: Fri, 5 Jan 2024 14:48:31 +0000 (+0100) Subject: udev-util: drop unused function X-Git-Tag: v256-rc1~1183^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a1c7dc7d1651e105cb5e70eabc7d84521099c840;p=thirdparty%2Fsystemd.git udev-util: drop unused function --- diff --git a/src/shared/udev-util.c b/src/shared/udev-util.c index 5ea03d6740c..68e594e065c 100644 --- a/src/shared/udev-util.c +++ b/src/shared/udev-util.c @@ -23,28 +23,6 @@ #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[] = { diff --git a/src/shared/udev-util.h b/src/shared/udev-util.h index 651d335b969..958acc9382a 100644 --- a/src/shared/udev-util.h +++ b/src/shared/udev-util.h @@ -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);