summaryrefslogtreecommitdiff
path: root/src/shared/util.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-04-10 12:21:44 +0200
committerLennart Poettering <lennart@poettering.net>2015-04-10 16:23:46 +0200
commit6dd67163b8f173649e7dc73740f35274714caafc (patch)
tree7541332ff80412cef7c0bcf0b9a2f5378227c0f7 /src/shared/util.c
parent0d67448869bd881fd6aea57de6da98800395cf1f (diff)
util: remove normalize_env_assignment(), it's unused
Diffstat (limited to 'src/shared/util.c')
-rw-r--r--src/shared/util.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/shared/util.c b/src/shared/util.c
index 6e5c5ca61a..8372038d4d 100644
--- a/src/shared/util.c
+++ b/src/shared/util.c
@@ -3675,36 +3675,6 @@ static char *unquote(const char *s, const char* quotes) {
return strdup(s);
}
-char *normalize_env_assignment(const char *s) {
- _cleanup_free_ char *value = NULL;
- const char *eq;
- char *p, *name;
-
- eq = strchr(s, '=');
- if (!eq) {
- char *r, *t;
-
- r = strdup(s);
- if (!r)
- return NULL;
-
- t = strstrip(r);
- if (t != r)
- memmove(r, t, strlen(t) + 1);
-
- return r;
- }
-
- name = strndupa(s, eq - s);
- p = strdupa(eq + 1);
-
- value = unquote(strstrip(p), QUOTES);
- if (!value)
- return NULL;
-
- return strjoin(strstrip(name), "=", value, NULL);
-}
-
int wait_for_terminate(pid_t pid, siginfo_t *status) {
siginfo_t dummy;