aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/virtuals
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-12-31 03:21:02 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-01-01 03:57:53 +0000
commit4a4c5ce98b186a8dc3e3d683b1889a7f724c93c3 (patch)
treeb3daed1da5be1fdae3bd27e5b38a8d3b538731da /paludis/repositories/virtuals
parent79da6018d6c02a099af83ecd62e8858ead5f27db (diff)
downloadpaludis-4a4c5ce98b186a8dc3e3d683b1889a7f724c93c3.tar.gz
paludis-4a4c5ce98b186a8dc3e3d683b1889a7f724c93c3.tar.xz
Kill formatters
Diffstat (limited to 'paludis/repositories/virtuals')
-rw-r--r--paludis/repositories/virtuals/package_id.cc25
-rw-r--r--paludis/repositories/virtuals/package_id.hh6
2 files changed, 0 insertions, 31 deletions
diff --git a/paludis/repositories/virtuals/package_id.cc b/paludis/repositories/virtuals/package_id.cc
index 902850016..4f230042d 100644
--- a/paludis/repositories/virtuals/package_id.cc
+++ b/paludis/repositories/virtuals/package_id.cc
@@ -34,7 +34,6 @@
#include <paludis/environment.hh>
#include <paludis/version_requirements.hh>
#include <paludis/metadata_key.hh>
-#include <paludis/formatter.hh>
#include <paludis/action.hh>
#include <paludis/mask.hh>
#include <paludis/package_database.hh>
@@ -131,30 +130,6 @@ VirtualsDepKey::type() const
return mkt_dependencies;
}
-std::string
-VirtualsDepKey::pretty_print(const DependencySpecTree::ItemFormatter & f) const
-{
- if (_imp->env)
- {
- if (! (*_imp->env)[selection::SomeArbitraryVersion(generator::Matches(*_imp->spec, { }) |
- filter::InstalledAtRoot(_imp->env->preferred_root_key()->value()))]->empty())
- return f.format(*_imp->spec, format::Installed());
- else if (! (*_imp->env)[selection::SomeArbitraryVersion(generator::Matches(*_imp->spec, { }) |
- filter::SupportsAction<InstallAction>() | filter::NotMasked())]->empty())
- return f.format(*_imp->spec, format::Installable());
- else
- return f.format(*_imp->spec, format::Plain());
- }
- else
- return f.format(*_imp->spec, format::Plain());
-}
-
-std::string
-VirtualsDepKey::pretty_print_flat(const DependencySpecTree::ItemFormatter & f) const
-{
- return pretty_print(f);
-}
-
const std::string
VirtualsDepKey::pretty_print_value(
const PrettyPrinter & pretty_printer,
diff --git a/paludis/repositories/virtuals/package_id.hh b/paludis/repositories/virtuals/package_id.hh
index bd4e984d9..00152a1b0 100644
--- a/paludis/repositories/virtuals/package_id.hh
+++ b/paludis/repositories/virtuals/package_id.hh
@@ -45,12 +45,6 @@ namespace paludis
virtual const std::shared_ptr<const DependencySpecTree> value() const
PALUDIS_ATTRIBUTE((warn_unused_result));
- virtual std::string pretty_print(const DependencySpecTree::ItemFormatter &) const
- PALUDIS_ATTRIBUTE((warn_unused_result));
-
- virtual std::string pretty_print_flat(const DependencySpecTree::ItemFormatter &) const
- PALUDIS_ATTRIBUTE((warn_unused_result));
-
virtual const std::shared_ptr<const DependenciesLabelSequence> initial_labels() const
PALUDIS_ATTRIBUTE((warn_unused_result));