aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-10-25 21:14:47 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-10-25 21:14:47 +0000
commit35c7e831d4ca2976991ba0acaa142e6b7ad4ddf4 (patch)
tree3e00fc6f5e7f4c27a32ae27c86ffdc759abdf5ea
parente23b2cc47768db6bbb0104ee084c860794eb3e6c (diff)
downloadpaludis-35c7e831d4ca2976991ba0acaa142e6b7ad4ddf4.tar.gz
paludis-35c7e831d4ca2976991ba0acaa142e6b7ad4ddf4.tar.xz
Doesn't exist any more
-rw-r--r--src/clients/reconcilio/broken_linkage_finder/broken_linkage_finder.cc23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/clients/reconcilio/broken_linkage_finder/broken_linkage_finder.cc b/src/clients/reconcilio/broken_linkage_finder/broken_linkage_finder.cc
index 5b5b0e7..488c436 100644
--- a/src/clients/reconcilio/broken_linkage_finder/broken_linkage_finder.cc
+++ b/src/clients/reconcilio/broken_linkage_finder/broken_linkage_finder.cc
@@ -166,24 +166,14 @@ BrokenLinkageFinder::BrokenLinkageFinder(const Environment * env, const std::str
{
Log::get_instance()->message("reconcilio.broken_linkage_finder.config", ll_debug, lc_context)
<< "Need to check for extra libraries in '" << (env->root() / *it) << "'";
-#ifndef PALUDIS_TR1_FUNCTIONAL_IS_BOOST
- std::for_each(_imp->checkers.begin(), _imp->checkers.end(),
- std::tr1::bind(&LinkageChecker::add_extra_lib_dir, _1, env->root() / *it));
-#else
std::for_each(indirect_iterator(_imp->checkers.begin()), indirect_iterator(_imp->checkers.end()),
std::tr1::bind(&LinkageChecker::add_extra_lib_dir, _1, env->root() / *it));
-#endif
}
std::tr1::function<void (const FSEntry &, const std::string &)> callback(
std::tr1::bind(&Implementation<BrokenLinkageFinder>::add_breakage, _imp.get(), _1, _2));
-#ifndef PALUDIS_TR1_FUNCTIONAL_IS_BOOST
- std::for_each(_imp->checkers.begin(), _imp->checkers.end(),
- std::tr1::bind(&LinkageChecker::need_breakage_added, _1, callback));
-#else
std::for_each(indirect_iterator(_imp->checkers.begin()), indirect_iterator(_imp->checkers.end()),
std::tr1::bind(&LinkageChecker::need_breakage_added, _1, callback));
-#endif
_imp->checkers.clear();
}
@@ -259,13 +249,8 @@ Implementation<BrokenLinkageFinder>::check_file(const FSEntry & file)
FSEntry target(dereference_with_root(file, env->root()));
if (target.is_regular_file())
{
-#ifndef PALUDIS_TR1_FUNCTIONAL_IS_BOOST
- std::for_each(checkers.begin(), checkers.end(),
- std::tr1::bind(&LinkageChecker::note_symlink, _1, file, target));
-#else
std::for_each(indirect_iterator(checkers.begin()), indirect_iterator(checkers.end()),
std::tr1::bind(&LinkageChecker::note_symlink, _1, file, target));
-#endif
}
}
@@ -274,19 +259,11 @@ Implementation<BrokenLinkageFinder>::check_file(const FSEntry & file)
else if (file.is_regular_file())
{
-#ifndef PALUDIS_TR1_FUNCTIONAL_IS_BOOST
- if (checkers.end() ==
- std::find_if(checkers.begin(), checkers.end(),
- std::tr1::bind(&LinkageChecker::check_file, _1, file)))
- Log::get_instance()->message("reconcilio.broken_linkage_finder.unrecognised", ll_debug, lc_context)
- << "'" << file << "' is not a recognised file type";
-#else
if (indirect_iterator(checkers.end()) ==
std::find_if(indirect_iterator(checkers.begin()), indirect_iterator(checkers.end()),
std::tr1::bind(&LinkageChecker::check_file, _1, file)))
Log::get_instance()->message("reconcilio.broken_linkage_finder.unrecognised", ll_debug, lc_context)
<< "'" << file << "' is not a recognised file type";
-#endif
}
}
catch (const FSError & ex)