aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-09-04 23:30:07 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-09-04 23:30:07 +0100
commit27d57d9ed2f2a24a86b91029638563cd8ccfabab (patch)
treecc8bd72c1be1741d3206735ca591bffac9c49d75 /src
parentb5280212886a3a31703600c12608c5a5a8be5555 (diff)
downloadpaludis-27d57d9ed2f2a24a86b91029638563cd8ccfabab.tar.gz
paludis-27d57d9ed2f2a24a86b91029638563cd8ccfabab.tar.xz
Contents is not a MetadataKey
Diffstat (limited to 'src')
-rwxr-xr-xsrc/clients/cave/cmd_display_resolution.cc5
-rw-r--r--src/clients/cave/cmd_info.cc4
-rw-r--r--src/clients/cave/cmd_match.cc4
-rw-r--r--src/clients/cave/cmd_show.cc35
-rw-r--r--src/clients/cave/format_plain_metadata_key.cc5
5 files changed, 0 insertions, 53 deletions
diff --git a/src/clients/cave/cmd_display_resolution.cc b/src/clients/cave/cmd_display_resolution.cc
index 0aa4f7aa2..04fece641 100755
--- a/src/clients/cave/cmd_display_resolution.cc
+++ b/src/clients/cave/cmd_display_resolution.cc
@@ -928,11 +928,6 @@ namespace
cout << fuc(fs_mask_by(), fv<'i'>(indent), fv<'k'>(k.human_name()), fv<'v'>(pretty_print_time(k.parse_value().seconds())));
}
- void visit(const MetadataValueKey<std::shared_ptr<const Contents> > & k)
- {
- cout << fuc(fs_mask_by_valueless(), fv<'i'>(indent), fv<'k'>(k.human_name()));
- }
-
void visit(const MetadataValueKey<FSPath> & k)
{
cout << fuc(fs_mask_by(), fv<'i'>(indent), fv<'k'>(k.human_name()), fv<'v'>(stringify(k.parse_value())));
diff --git a/src/clients/cave/cmd_info.cc b/src/clients/cave/cmd_info.cc
index 94018510c..ad0e698ad 100644
--- a/src/clients/cave/cmd_info.cc
+++ b/src/clients/cave/cmd_info.cc
@@ -270,10 +270,6 @@ namespace
cout << fuc(fs_metadata(), fv<'h'>(k.human_name()), fv<'i'>(std::string(indent, ' ')), fv<'s'>(stringify(*k.parse_value())));
}
- void visit(const MetadataValueKey<std::shared_ptr<const Contents> > &)
- {
- }
-
void visit(const MetadataValueKey<std::shared_ptr<const Choices> > &)
{
}
diff --git a/src/clients/cave/cmd_match.cc b/src/clients/cave/cmd_match.cc
index d39d83562..88b01ab04 100644
--- a/src/clients/cave/cmd_match.cc
+++ b/src/clients/cave/cmd_match.cc
@@ -282,10 +282,6 @@ namespace
texts.push_back(stringify((*i)->name_with_prefix()));
}
- void visit(const MetadataValueKey<std::shared_ptr<const Contents> > &)
- {
- }
-
void visit(const MetadataTimeKey & k)
{
texts.push_back(stringify(k.parse_value().seconds()));
diff --git a/src/clients/cave/cmd_show.cc b/src/clients/cave/cmd_show.cc
index 22a2368f2..a78d9fbee 100644
--- a/src/clients/cave/cmd_show.cc
+++ b/src/clients/cave/cmd_show.cc
@@ -745,41 +745,6 @@ namespace
);
}
- void visit(const MetadataValueKey<std::shared_ptr<const Contents> > & k)
- {
- auto v(k.parse_value());
- if (cmdline.a_complex_keys.specified() || important)
- {
- if (cmdline.a_flat.specified())
- {
- ContentsDisplayer d(0);
- std::for_each(indirect_iterator(v->begin()), indirect_iterator(v->end()), accept_visitor(d));
- out << fuc(
- (cmdline.a_raw_names.specified() ? fs_metadata_value_raw() : fs_metadata_value_human()),
- fv<'s'>(cmdline.a_raw_names.specified() ? k.raw_name() : k.human_name()),
- fv<'v'>(d.s.str()),
- fv<'i'>(std::string(indent, ' ')),
- fv<'b'>(important ? "true" : ""),
- fv<'p'>("")
- );
- }
- else
- {
- ContentsDisplayer d(indent);
- std::for_each(indirect_iterator(v->begin()), indirect_iterator(v->end()), accept_visitor(d));
- out << fuc(
- (cmdline.a_raw_names.specified() ? fs_metadata_value_raw() : fs_metadata_value_human()),
- fv<'s'>(cmdline.a_raw_names.specified() ? k.raw_name() : k.human_name()),
- fv<'v'>(""),
- fv<'i'>(std::string(indent, ' ')),
- fv<'b'>(important ? "true" : ""),
- fv<'p'>("")
- );
- out << d.s.str();
- }
- }
- }
-
void visit(const MetadataValueKey<std::shared_ptr<const Choices> > & k)
{
auto choices(k.parse_value());
diff --git a/src/clients/cave/format_plain_metadata_key.cc b/src/clients/cave/format_plain_metadata_key.cc
index 528c00caa..a2699d697 100644
--- a/src/clients/cave/format_plain_metadata_key.cc
+++ b/src/clients/cave/format_plain_metadata_key.cc
@@ -45,11 +45,6 @@ namespace
s << k.parse_value().seconds();
}
- void visit(const MetadataValueKey<std::shared_ptr<const Contents> > &)
- {
- s << "<unprintable>";
- }
-
void visit(const MetadataValueKey<std::shared_ptr<const Choices> > &)
{
s << "<unprintable>";