summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2010-10-20 13:32:45 (GMT)
committerThomas Graf <tgraf@suug.ch>2010-10-20 13:32:45 (GMT)
commit420438c71f2951b4ad1525de0d805fbf1cc9b15c (patch)
tree790bab914f9cd174d08916a99a474a9e8e24180f /src
parenta670ee5d72cc6c2492108edfe131f7547081748f (diff)
downloadlibnl-420438c71f2951b4ad1525de0d805fbf1cc9b15c.zip
libnl-420438c71f2951b4ad1525de0d805fbf1cc9b15c.tar.gz
libnl-420438c71f2951b4ad1525de0d805fbf1cc9b15c.tar.bz2
Remove NL_DUMP_ENV code
Dumping objects as environment variables has never been implemented completely and only increases the size of the library for no real purpose. Integration into scripts is better achieved by implementing a python module anyway.
Diffstat (limited to 'src')
-rw-r--r--src/lib/utils.c2
-rw-r--r--src/nl-list-caches.c1
2 files changed, 0 insertions, 3 deletions
diff --git a/src/lib/utils.c b/src/lib/utils.c
index 9375bfc..ef76c84 100644
--- a/src/lib/utils.c
+++ b/src/lib/utils.c
@@ -125,8 +125,6 @@ int nl_cli_parse_dumptype(const char *str)
return NL_DUMP_DETAILS;
else if (!strcasecmp(str, "stats"))
return NL_DUMP_STATS;
- else if (!strcasecmp(str, "env"))
- return NL_DUMP_ENV;
else
nl_cli_fatal(EINVAL, "Invalid dump type \"%s\".\n", str);
diff --git a/src/nl-list-caches.c b/src/nl-list-caches.c
index 7e4ffc1..3c35dd5 100644
--- a/src/nl-list-caches.c
+++ b/src/nl-list-caches.c
@@ -48,7 +48,6 @@ static void print(struct nl_cache_ops *ops, void *arg)
"brief",
"detailed",
"stats",
- "env",
};
int i;