]> git.proxmox.com Git - systemd.git/blobdiff - src/libudev/libudev-util.c
New upstream version 236
[systemd.git] / src / libudev / libudev-util.c
index 1d73d8f09061ad852fc66cb4011b25f5fc9d3984..977caad86d31eb476bb610eb6ac39d25f2887753 100644 (file)
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1+ */
 /***
   This file is part of systemd.
 
@@ -150,17 +151,6 @@ size_t util_path_encode(const char *src, char *dest, size_t size)
         return j;
 }
 
-void util_remove_trailing_chars(char *path, char c)
-{
-        size_t len;
-
-        if (path == NULL)
-                return;
-        len = strlen(path);
-        while (len > 0 && path[len-1] == c)
-                path[--len] = '\0';
-}
-
 /*
  * Copy from 'str' to 'to', while removing all leading and trailing whitespace,
  * and replacing each run of consecutive whitespace with a single underscore.