aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-04-13 13:19:07 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-04-15 00:29:37 +0100
commit6bdf2a4d70cff6f4a4c917afb00907959449e941 (patch)
tree97131e683f1721e5f5d93ee2b1a777bb49bda899
parent98f244a96232aabd3b377290444d204436e479e0 (diff)
downloadpaludis-6bdf2a4d70cff6f4a4c917afb00907959449e941.tar.gz
paludis-6bdf2a4d70cff6f4a4c917afb00907959449e941.tar.xz
Don't cache plain text specs
-rw-r--r--paludis/repositories/e/e_key.cc10
1 files changed, 1 insertions, 9 deletions
diff --git a/paludis/repositories/e/e_key.cc b/paludis/repositories/e/e_key.cc
index 7ba6d99..a8a8b41 100644
--- a/paludis/repositories/e/e_key.cc
+++ b/paludis/repositories/e/e_key.cc
@@ -411,8 +411,6 @@ namespace paludis
{
const Environment * const env;
const std::string string_value;
- mutable Mutex value_mutex;
- mutable std::shared_ptr<const PlainTextSpecTree> value;
const std::shared_ptr<const EAPIMetadataVariable> variable;
const std::shared_ptr<const EAPI> eapi;
@@ -449,14 +447,8 @@ EPlainTextSpecKey::~EPlainTextSpecKey()
const std::shared_ptr<const PlainTextSpecTree>
EPlainTextSpecKey::parse_value() const
{
- Lock l(_imp->value_mutex);
-
- if (_imp->value)
- return _imp->value;
-
Context context("When parsing metadata key '" + raw_name() + "':");
- _imp->value = parse_plain_text(_imp->string_value, _imp->env, *_imp->eapi, _imp->is_installed);
- return _imp->value;
+ return parse_plain_text(_imp->string_value, _imp->env, *_imp->eapi, _imp->is_installed);
}
const std::string