diff options
author | 2013-05-16 15:40:37 +0100 | |
---|---|---|
committer | 2013-05-22 16:43:42 +0100 | |
commit | edbea37b0f4cf4bc5e8c9102f4b88342c2f77646 (patch) | |
tree | 7c96a198f248c596262506fea5209db5abe732ba | |
parent | 79c9eff958ab179348b885eef281e992ab995f9b (diff) | |
download | paludis-edbea37b0f4cf4bc5e8c9102f4b88342c2f77646.tar.gz paludis-edbea37b0f4cf4bc5e8c9102f4b88342c2f77646.tar.xz |
Remove dead code
-rw-r--r-- | paludis/util/thread.cc | 14 | ||||
-rw-r--r-- | paludis/util/thread.hh | 7 |
2 files changed, 2 insertions, 19 deletions
diff --git a/paludis/util/thread.cc b/paludis/util/thread.cc index ed3d46c0d..19516ba1c 100644 --- a/paludis/util/thread.cc +++ b/paludis/util/thread.cc @@ -1,7 +1,7 @@ /* vim: set sw=4 sts=4 et foldmethod=syntax : */ /* - * Copyright (c) 2007, 2008, 2010 Ciaran McCreesh + * Copyright (c) 2007, 2008, 2010, 2012 Ciaran McCreesh * * This file is part of the Paludis package manager. Paludis is free software; * you can redistribute it and/or modify it under the terms of the GNU General @@ -70,15 +70,3 @@ Thread::~Thread() throw InternalError(PALUDIS_HERE, "Exception '" + _exception + "' uncaught in child thread"); } -void -Thread::idle_adapter(const std::function<void () throw ()> & f) -{ -#ifdef __linux__ - if (-1 == setpriority(PRIO_PROCESS, syscall(SYS_gettid), std::max(19, getpriority(PRIO_PROCESS, 0) + 10))) - Log::get_instance()->message("util.thread.setpriority", ll_warning, lc_context) << "Failed to setpriority: " << strerror(errno); -#else -# warning "Don't know how to set thread priorities on your platform" -#endif - f(); -} - diff --git a/paludis/util/thread.hh b/paludis/util/thread.hh index 40f64cd32..adff17c65 100644 --- a/paludis/util/thread.hh +++ b/paludis/util/thread.hh @@ -1,7 +1,7 @@ /* vim: set sw=4 sts=4 et foldmethod=syntax : */ /* - * Copyright (c) 2007, 2008 Ciaran McCreesh + * Copyright (c) 2007, 2008, 2012 Ciaran McCreesh * * This file is part of the Paludis package manager. Paludis is free software; * you can redistribute it and/or modify it under the terms of the GNU General @@ -64,11 +64,6 @@ namespace paludis ~Thread(); ///\} - - /** - * Adapt a function for use in IdleActionPool. - */ - static void idle_adapter(const std::function<void () throw ()> &); }; } |