From: Daniel Lezcano Date: Mon, 12 Oct 2009 20:02:06 +0000 (+0200) Subject: remove configure dead code X-Git-Tag: lxc_0_6_4~54 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a79cf7042749d00b5a0f6daba57432496b4161dc;p=thirdparty%2Flxc.git remove configure dead code Remove the old configuration remaining code. Signed-off-by: Daniel Lezcano --- diff --git a/src/lxc/conf.c b/src/lxc/conf.c index 725d8e160..e2d2da7bb 100644 --- a/src/lxc/conf.c +++ b/src/lxc/conf.c @@ -929,11 +929,6 @@ int lxc_conf_init(struct lxc_conf *conf) return 0; } -int lxc_configure(const char *name, struct lxc_conf *conf) -{ - return 0; -} - int lxc_unconfigure(const char *name) { if (conf_has_utsname(name) && unconfigure_utsname(name)) diff --git a/src/lxc/conf.h b/src/lxc/conf.h index f72e5f5d4..3b3a1d966 100644 --- a/src/lxc/conf.h +++ b/src/lxc/conf.h @@ -146,11 +146,6 @@ struct lxc_conf { */ extern int lxc_conf_init(struct lxc_conf *conf); -/* - * Configure the external resources for the container - */ -extern int lxc_configure(const char *name, struct lxc_conf *conf); - /* * Remove the resources created by the configuration */ diff --git a/src/lxc/create.c b/src/lxc/create.c index afb920c1c..4f0d92ca9 100644 --- a/src/lxc/create.c +++ b/src/lxc/create.c @@ -127,11 +127,6 @@ int lxc_create(const char *name, struct lxc_conf *conf) if (lock < 0) goto err; - if (lxc_configure(name, conf)) { - ERROR("failed to set configuration for %s", name); - goto err_state; - } - if (conf->rcfile && copy_config_file(name, conf->rcfile)) { ERROR("failed to copy the configuration file"); goto err_state;