summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2011-09-14 22:42:10 +0000
committerrandomdan <randomdan@localhost>2011-09-14 22:42:10 +0000
commitab25a34c665de7ab680fc4063ed2b65956a63bb0 (patch)
tree2305aeb458c83cea19adb131ea44ba4ec4d93ea8
parentFix call to create new curl objects in XML libs (diff)
downloadproject2-ab25a34c665de7ab680fc4063ed2b65956a63bb0.tar.bz2
project2-ab25a34c665de7ab680fc4063ed2b65956a63bb0.tar.xz
project2-ab25a34c665de7ab680fc4063ed2b65956a63bb0.zip
Remove pointless check
-rw-r--r--project2/common/iHaveParameters.cpp3
-rw-r--r--project2/common/iHaveParameters.h2
-rw-r--r--project2/common/rowProcessor.cpp2
3 files changed, 3 insertions, 4 deletions
diff --git a/project2/common/iHaveParameters.cpp b/project2/common/iHaveParameters.cpp
index 7d750b3..18996e5 100644
--- a/project2/common/iHaveParameters.cpp
+++ b/project2/common/iHaveParameters.cpp
@@ -33,9 +33,8 @@ IHaveParameters::push(const IHaveParameters * p)
}
void
-IHaveParameters::pop(const IHaveParameters * p)
+IHaveParameters::pop()
{
- assert(scope.back() == p);
scope.pop_back();
}
diff --git a/project2/common/iHaveParameters.h b/project2/common/iHaveParameters.h
index 28dbf7d..08c8d00 100644
--- a/project2/common/iHaveParameters.h
+++ b/project2/common/iHaveParameters.h
@@ -23,7 +23,7 @@ class IHaveParameters {
Parameters parameters;
static void push(const IHaveParameters *);
- static void pop(const IHaveParameters *);
+ static void pop();
private:
typedef std::vector<const IHaveParameters *> Stack;
static Stack scope;
diff --git a/project2/common/rowProcessor.cpp b/project2/common/rowProcessor.cpp
index 71fdd76..f9d821e 100644
--- a/project2/common/rowProcessor.cpp
+++ b/project2/common/rowProcessor.cpp
@@ -25,7 +25,7 @@ void
RowProcessor::execute() const
{
IHaveParameters::push(this);
- ScopeObject _ihp(boost::bind(&IHaveParameters::pop, this));
+ ScopeObject _ihp(boost::bind(&IHaveParameters::pop));
BOOST_FOREACH(const CachePtr & c, caches) {
if (c->checkAndExecute(source->name, filter, this)) {
BOOST_FOREACH(const TargetCaches::value_type & c, tc) {