diff options
author | 2011-03-25 20:12:33 +0000 | |
---|---|---|
committer | 2011-03-26 19:00:37 +0000 | |
commit | 099a4e90c07e655b98073d8386ef5abaeec55a04 (patch) | |
tree | 0189b35286f6ccd7a341722025b047f91715420e /python | |
parent | 52053348fd898ecbc2fe568db26259311a24d040 (diff) | |
download | paludis-099a4e90c07e655b98073d8386ef5abaeec55a04.tar.gz paludis-099a4e90c07e655b98073d8386ef5abaeec55a04.tar.xz |
paludis_command not used
Diffstat (limited to 'python')
-rw-r--r-- | python/additional_tests.cc | 4 | ||||
-rw-r--r-- | python/environment.cc | 31 | ||||
-rwxr-xr-x | python/environment_TEST.py | 6 |
3 files changed, 0 insertions, 41 deletions
diff --git a/python/additional_tests.cc b/python/additional_tests.cc index fc1d5bff4..ee0b13e5d 100644 --- a/python/additional_tests.cc +++ b/python/additional_tests.cc @@ -74,10 +74,6 @@ namespace environment e.hook_dirs(); - e.paludis_command(); - - e.set_paludis_command("paludis"); - e.reduced_uid(); e.reduced_gid(); diff --git a/python/environment.cc b/python/environment.cc index 1c2ed908a..71dca0f36 100644 --- a/python/environment.cc +++ b/python/environment.cc @@ -190,27 +190,6 @@ class EnvironmentImplementationWrapper : throw PythonMethodNotImplemented("EnvironmentImplementation", "hook_dirs"); } - virtual std::string paludis_command() const - PALUDIS_ATTRIBUTE((warn_unused_result)) - { - Lock l(get_mutex()); - - if (bp::override f = get_override("paludis_command")) - return f(); - else - throw PythonMethodNotImplemented("EnvironmentImplementation", "paludis_command"); - } - - virtual void set_paludis_command(const std::string & s) - { - Lock l(get_mutex()); - - if (bp::override f = get_override("set_paludis_command")) - f(s); - else - throw PythonMethodNotImplemented("EnvironmentImplementation", "set_paludis_command"); - } - virtual uid_t reduced_uid() const { Lock l(get_mutex()); @@ -617,16 +596,6 @@ void expose_environment() "Return directories to search for hooks." ) - .def("paludis_command", bp::pure_virtual(&EnvImp::paludis_command), - "paludis_command() -> str\n" - "Return the command used to launch paludis (the client)." - ) - - .def("set_paludis_command", bp::pure_virtual(&EnvImp::set_paludis_command), - "set_paludis_command(str)\n" - "Change the command used to launch paludis (the client)." - ) - .def("reduced_uid", bp::pure_virtual(&EnvImp::reduced_uid), "reduced_uid() -> int\n" "User id to use when reduced privs are permissible." diff --git a/python/environment_TEST.py b/python/environment_TEST.py index 54086c889..0e580eda1 100755 --- a/python/environment_TEST.py +++ b/python/environment_TEST.py @@ -109,12 +109,6 @@ class TestCase_04_Environment_subclassingd(unittest.TestCase): def hook_dirs(self): return ["/path"] - def paludis_command(self): - return "paludis" - - def set_paludis_command(self, s): - pass - def reduced_uid(self): return 0 |