mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 00:47:10 +09:00
udev-util: drop unused function
This commit is contained in:
committed by
Yu Watanabe
parent
07f5e35fe7
commit
a1c7dc7d16
@@ -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[] = {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user