aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-07-06 20:48:01 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-07-06 20:48:01 +0100
commitf1393dd3e0dddb09aee1cc070ed8e339902bf1d0 (patch)
treeda43522e2b593ce088b3429eaa5a4f4967eab2fb
parentcacf426632ba277401058f0da77a72150fde26df (diff)
downloadpaludis-f1393dd3e0dddb09aee1cc070ed8e339902bf1d0.tar.gz
paludis-f1393dd3e0dddb09aee1cc070ed8e339902bf1d0.tar.xz
Don't bother saving is_scm
-rw-r--r--paludis/version_spec.cc15
1 files changed, 0 insertions, 15 deletions
diff --git a/paludis/version_spec.cc b/paludis/version_spec.cc
index 8590998..5f36353 100644
--- a/paludis/version_spec.cc
+++ b/paludis/version_spec.cc
@@ -63,15 +63,10 @@ namespace paludis
mutable bool has_hash;
mutable std::size_t hash;
- mutable Mutex is_scm_mutex;
- mutable bool has_is_scm;
- mutable bool is_scm;
-
const VersionSpecOptions options;
Implementation(const VersionSpecOptions & o) :
has_hash(false),
- has_is_scm(false),
options(o)
{
}
@@ -350,8 +345,6 @@ VersionSpec::operator= (const VersionSpec & other)
_imp->parts = other._imp->parts;
_imp->has_hash = other._imp->has_hash;
_imp->hash = other._imp->hash;
- _imp->has_is_scm = other._imp->has_is_scm;
- _imp->is_scm = other._imp->is_scm;
}
return *this;
}
@@ -660,11 +653,6 @@ paludis::operator<< (std::ostream & s, const VersionSpec & v)
bool
VersionSpec::is_scm() const
{
- Lock l(_imp->is_scm_mutex);
-
- if (_imp->has_is_scm)
- return _imp->is_scm;
-
bool result(false);
do
{
@@ -701,9 +689,6 @@ VersionSpec::is_scm() const
}
} while (false);
- _imp->is_scm = result;
- _imp->has_is_scm = true;
-
return result;
}