aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/e_key.cc
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/repositories/e/e_key.cc')
-rw-r--r--paludis/repositories/e/e_key.cc137
1 files changed, 0 insertions, 137 deletions
diff --git a/paludis/repositories/e/e_key.cc b/paludis/repositories/e/e_key.cc
index abde8a9d8..6bd34a807 100644
--- a/paludis/repositories/e/e_key.cc
+++ b/paludis/repositories/e/e_key.cc
@@ -792,143 +792,6 @@ EProvideKey::type() const
namespace paludis
{
template <>
- struct Imp<EKeywordsKey>
- {
- const std::shared_ptr<const ERepositoryID> id;
- const Environment * const env;
- const std::string string_value;
- mutable Mutex value_mutex;
- mutable std::shared_ptr<KeywordNameSet> value;
-
- const std::string raw_name;
- const std::string human_name;
- const MetadataKeyType type;
-
- Imp(const std::shared_ptr<const ERepositoryID> & i, const Environment * const e, const std::string & v,
- const std::string & r, const std::string & h, const MetadataKeyType t) :
- id(i),
- env(e),
- string_value(v),
- raw_name(r),
- human_name(h),
- type(t)
- {
- }
- };
-}
-
-EKeywordsKey::EKeywordsKey(const Environment * const e, const std::shared_ptr<const ERepositoryID> & id,
- const std::string & r, const std::string & h, const std::string & v, const MetadataKeyType t) :
- Pimp<EKeywordsKey>(id, e, v, r, h, t)
-{
-}
-
-EKeywordsKey::~EKeywordsKey()
-{
-}
-
-const std::shared_ptr<const KeywordNameSet>
-EKeywordsKey::value() const
-{
- Lock l(_imp->value_mutex);
- if (_imp->value)
- return _imp->value;
-
- _imp->value = std::make_shared<KeywordNameSet>();
- Context context("When parsing metadata key '" + raw_name() + "' from '" + stringify(*_imp->id) + "':");
- tokenise_whitespace(_imp->string_value, create_inserter<KeywordName>(_imp->value->inserter()));
- return _imp->value;
-}
-
-const std::string
-EKeywordsKey::pretty_print_value(const PrettyPrinter & p, const PrettyPrintOptions &) const
-{
- return join(value()->begin(), value()->end(), " ", CallPrettyPrinter(p));
-}
-
-const std::string
-EKeywordsKey::raw_name() const
-{
- return _imp->raw_name;
-}
-
-const std::string
-EKeywordsKey::human_name() const
-{
- return _imp->human_name;
-}
-
-MetadataKeyType
-EKeywordsKey::type() const
-{
- return _imp->type;
-}
-
-namespace paludis
-{
- template <>
- struct Imp<EStringSetKey>
- {
- const std::shared_ptr<Set<std::string> > value;
-
- const std::string raw_name;
- const std::string human_name;
- const MetadataKeyType type;
-
- Imp(const std::string & v, const std::string & r, const std::string & h, const MetadataKeyType t) :
- value(std::make_shared<Set<std::string> >()),
- raw_name(r),
- human_name(h),
- type(t)
- {
- tokenise_whitespace(v, value->inserter());
- }
- };
-}
-
-EStringSetKey::EStringSetKey(const std::string & r, const std::string & h, const std::string & v, const MetadataKeyType t) :
- Pimp<EStringSetKey>(v, r, h, t)
-{
-}
-
-EStringSetKey::~EStringSetKey()
-{
-}
-
-const std::shared_ptr<const Set<std::string> >
-EStringSetKey::value() const
-{
- return _imp->value;
-}
-
-const std::string
-EStringSetKey::raw_name() const
-{
- return _imp->raw_name;
-}
-
-const std::string
-EStringSetKey::human_name() const
-{
- return _imp->human_name;
-}
-
-MetadataKeyType
-EStringSetKey::type() const
-{
- return _imp->type;
-}
-
-const std::string
-EStringSetKey::pretty_print_value(
- const PrettyPrinter & p, const PrettyPrintOptions &) const
-{
- return join(value()->begin(), value()->end(), " ", CallPrettyPrinter(p));
-}
-
-namespace paludis
-{
- template <>
struct Imp<EContentsKey>
{
const std::shared_ptr<const ERepositoryID> id;