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.cc77
1 files changed, 0 insertions, 77 deletions
diff --git a/paludis/repositories/e/e_key.cc b/paludis/repositories/e/e_key.cc
index 0462087..6ae1e2b 100644
--- a/paludis/repositories/e/e_key.cc
+++ b/paludis/repositories/e/e_key.cc
@@ -638,83 +638,6 @@ ERequiredUseKey::type() const
namespace paludis
{
template <>
- struct Imp<EProvideKey>
- {
- const Environment * const env;
- const std::string string_value;
-
- const std::shared_ptr<const EAPIMetadataVariable> variable;
- const std::shared_ptr<const EAPI> eapi;
- const MetadataKeyType type;
- const bool is_installed;
-
- Imp(const Environment * const e,
- const std::string & v,
- const std::shared_ptr<const EAPIMetadataVariable> & m,
- const std::shared_ptr<const EAPI> & p,
- const MetadataKeyType t, bool i) :
- env(e),
- string_value(v),
- variable(m),
- eapi(p),
- type(t),
- is_installed(i)
- {
- }
- };
-}
-
-EProvideKey::EProvideKey(
- const Environment * const e,
- const std::shared_ptr<const EAPIMetadataVariable> & m,
- const std::shared_ptr<const EAPI> & p,
- const std::string & v, const MetadataKeyType t, const bool i) :
- _imp(e, v, m, p, t, i)
-{
-}
-
-EProvideKey::~EProvideKey()
-{
-}
-
-const std::shared_ptr<const ProvideSpecTree>
-EProvideKey::parse_value() const
-{
- Context context("When parsing metadata key '" + raw_name() + "':");
- return parse_provide(_imp->string_value, _imp->env, *_imp->eapi, _imp->is_installed);
-}
-
-const std::string
-EProvideKey::pretty_print_value(
- const PrettyPrinter & pretty_printer,
- const PrettyPrintOptions & options) const
-{
- SpecTreePrettyPrinter p(pretty_printer, options);
- parse_value()->top()->accept(p);
- return stringify(p);
-}
-
-const std::string
-EProvideKey::raw_name() const
-{
- return _imp->variable->name();
-}
-
-const std::string
-EProvideKey::human_name() const
-{
- return _imp->variable->description();
-}
-
-MetadataKeyType
-EProvideKey::type() const
-{
- return _imp->type;
-}
-
-namespace paludis
-{
- template <>
struct Imp<EContentsKey>
{
const FSPath filename;