diff options
-rw-r--r-- | lib/sbuild/chroot/chroot.cc | 34 | ||||
-rw-r--r-- | lib/sbuild/chroot/facet/session.cc | 33 |
2 files changed, 0 insertions, 67 deletions
diff --git a/lib/sbuild/chroot/chroot.cc b/lib/sbuild/chroot/chroot.cc index a14f3420..af5f25f0 100644 --- a/lib/sbuild/chroot/chroot.cc +++ b/lib/sbuild/chroot/chroot.cc @@ -768,35 +768,8 @@ namespace sbuild void chroot::set_keyfile (keyfile const& keyfile) { - // Null method for obsolete keys. - void (chroot::* nullmethod)(bool) = 0; - bool session = static_cast<bool>(get_facet<facet::session>()); - keyfile::get_object_value(*this, nullmethod, - keyfile, get_name(), - "active", - keyfile::PRIORITY_OBSOLETE); - - // Setup scripts are run depending on the chroot type in use, and is - // no longer user-configurable. They need to run for all types - // except "plain". - keyfile::get_object_value(*this, nullmethod, - keyfile, get_name(), - "run-setup-scripts", - keyfile::PRIORITY_OBSOLETE); - - // Exec scripts have been removed, so these two calls do nothing - // except to warn the user that the options are no longer used. - keyfile::get_object_value(*this, nullmethod, - keyfile, get_name(), - "run-session-scripts", - keyfile::PRIORITY_OBSOLETE); - keyfile::get_object_value(*this, nullmethod, - keyfile, get_name(), - "run-exec-scripts", - keyfile::PRIORITY_OBSOLETE); - keyfile::get_object_value(*this, &chroot::set_profile, keyfile, get_name(), "profile", @@ -809,13 +782,6 @@ namespace sbuild keyfile::PRIORITY_OPTIONAL : keyfile::PRIORITY_DEPRECATED); - keyfile::get_object_value(*this, nullmethod, - keyfile, get_name(), - "priority", - session ? - keyfile::PRIORITY_OPTIONAL : - keyfile::PRIORITY_OBSOLETE); - keyfile::get_object_list_value(*this, &chroot::set_aliases, keyfile, get_name(), "aliases", diff --git a/lib/sbuild/chroot/facet/session.cc b/lib/sbuild/chroot/facet/session.cc index f6a7f6a4..75070c58 100644 --- a/lib/sbuild/chroot/facet/session.cc +++ b/lib/sbuild/chroot/facet/session.cc @@ -223,39 +223,6 @@ namespace sbuild session::set_keyfile (chroot& chroot, keyfile const& keyfile) { - // Null methods for obsolete keys. - void (session::* nullmethod)(bool) = 0; - void (session::* nullvmethod)(string_list const&) = 0; - - // Setting when not clonable is deprecated. It can't be obsoleted - // yet because it is required to allow use and ending of existing - // sessions which have set this parameter (even though it's - // useless). - keyfile::get_object_value(*this, nullmethod, - keyfile, chroot.get_name(), - "active", - keyfile::PRIORITY_OBSOLETE); - - keyfile::get_object_list_value(*this, nullvmethod, - keyfile, chroot.get_name(), - "source-users", - keyfile::PRIORITY_OBSOLETE); - - keyfile::get_object_list_value(*this, nullvmethod, - keyfile, chroot.get_name(), - "source-groups", - keyfile::PRIORITY_OBSOLETE); - - keyfile::get_object_list_value(*this, nullvmethod, - keyfile, chroot.get_name(), - "source-root-users", - keyfile::PRIORITY_OBSOLETE); - - keyfile::get_object_list_value(*this, nullvmethod, - keyfile, chroot.get_name(), - "source-root-groups", - keyfile::PRIORITY_OBSOLETE); - keyfile::get_object_value(*this, &session::set_original_name, keyfile, chroot.get_name(), "original-name", |