From 5e6b5aac1078e7667955efbf27cb793469501fff Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 26 Feb 2010 12:09:17 -0800 Subject: [PATCH] context: minor finish_contexts() cleanup --- src/include/Context.h | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/include/Context.h b/src/include/Context.h index f3024f87711c5..60a248a7fe0b3 100644 --- a/src/include/Context.h +++ b/src/include/Context.h @@ -41,10 +41,8 @@ class Context { inline void finish_contexts(std::list& finished, int result = 0) { - using std::cout; - using std::endl; - - if (finished.empty()) return; + if (finished.empty()) + return; list ls; ls.swap(finished); // swap out of place to avoid weird loops @@ -63,10 +61,8 @@ inline void finish_contexts(std::list& finished, inline void finish_contexts(std::vector& finished, int result = 0) { - using std::cout; - using std::endl; - - if (finished.empty()) return; + if (finished.empty()) + return; vector ls; ls.swap(finished); // swap out of place to avoid weird loops -- 2.39.5