udev-util: drop unused function

This commit is contained in:
David Tardon
2024-01-05 15:48:31 +01:00
committed by Yu Watanabe
parent 07f5e35fe7
commit a1c7dc7d16
2 changed files with 0 additions and 23 deletions

View File

@@ -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[] = {

View 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);