aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-04-13 13:13:42 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-04-15 00:29:37 +0100
commit98f244a96232aabd3b377290444d204436e479e0 (patch)
tree77868e4aab82d54129163adb48b0d322075d2982
parent9a5e4cadbe02b13d276c7eb12780275305ee4050 (diff)
downloadpaludis-98f244a96232aabd3b377290444d204436e479e0.tar.gz
paludis-98f244a96232aabd3b377290444d204436e479e0.tar.xz
Don't cache simple URIs
-rw-r--r--paludis/repositories/e/e_key.cc11
1 files changed, 1 insertions, 10 deletions
diff --git a/paludis/repositories/e/e_key.cc b/paludis/repositories/e/e_key.cc
index e8fbace..7ba6d99 100644
--- a/paludis/repositories/e/e_key.cc
+++ b/paludis/repositories/e/e_key.cc
@@ -336,8 +336,6 @@ namespace paludis
{
const Environment * const env;
const std::string string_value;
- mutable Mutex value_mutex;
- mutable std::shared_ptr<const SimpleURISpecTree> value;
const std::shared_ptr<const EAPIMetadataVariable> variable;
const std::shared_ptr<const EAPI> eapi;
@@ -375,14 +373,7 @@ ESimpleURIKey::~ESimpleURIKey()
const std::shared_ptr<const SimpleURISpecTree>
ESimpleURIKey::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_simple_uri(_imp->string_value, _imp->env, *_imp->eapi, _imp->is_installed);
- return _imp->value;
+ return parse_simple_uri(_imp->string_value, _imp->env, *_imp->eapi, _imp->is_installed);
}
const std::string