aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-02-26 22:52:04 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-02-26 22:52:04 +0000
commit9338f116a900bb17271b947a528ba4c2e67cadde (patch)
tree65638d87f6c7bb85968aeeaddd6b7f8883592123 /src
parent48654c330e14db70c0a8b3736b77ea2738382edd (diff)
downloadpaludis-9338f116a900bb17271b947a528ba4c2e67cadde.tar.gz
paludis-9338f116a900bb17271b947a528ba4c2e67cadde.tar.xz
Remove RepositoryMaskInfo keys
Diffstat (limited to 'src')
-rwxr-xr-xsrc/clients/cave/cmd_display_resolution.cc8
-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.cc21
-rw-r--r--src/clients/cave/format_plain_metadata_key.cc11
-rw-r--r--src/clients/instruo/instruo.cc5
6 files changed, 1 insertions, 52 deletions
diff --git a/src/clients/cave/cmd_display_resolution.cc b/src/clients/cave/cmd_display_resolution.cc
index f76b8fcdb..e41400adb 100755
--- a/src/clients/cave/cmd_display_resolution.cc
+++ b/src/clients/cave/cmd_display_resolution.cc
@@ -921,14 +921,6 @@ namespace
cout << fuc(fs_mask_by_valueless(), fv<'i'>(indent), fv<'k'>(k.human_name()));
}
- void visit(const MetadataValueKey<std::shared_ptr<const RepositoryMaskInfo> > & k)
- {
- cout << fuc(fs_mask_by(), fv<'i'>(indent), fv<'k'>(k.human_name()), fv<'v'>(stringify(k.value()->mask_file())));
- for (Sequence<std::string>::ConstIterator l(k.value()->comment()->begin()), l_end(k.value()->comment()->end()) ;
- l != l_end ; ++l)
- cout << fuc(fs_mask_by_repo_line(), fv<'i'>(indent), fv<'s'>(*l));
- }
-
void visit(const MetadataValueKey<FSPath> & k)
{
cout << fuc(fs_mask_by(), fv<'i'>(indent), fv<'k'>(k.human_name()), fv<'v'>(stringify(k.value())));
diff --git a/src/clients/cave/cmd_info.cc b/src/clients/cave/cmd_info.cc
index a106add3d..bd72650d7 100644
--- a/src/clients/cave/cmd_info.cc
+++ b/src/clients/cave/cmd_info.cc
@@ -281,10 +281,6 @@ namespace
{
}
- void visit(const MetadataValueKey<std::shared_ptr<const RepositoryMaskInfo> > &)
- {
- }
-
void visit(const MetadataTimeKey & k)
{
cout << fuc(fs_metadata(), fv<'h'>(k.human_name()), fv<'i'>(std::string(indent, ' ')), fv<'s'>(pretty_print_time(k.value().seconds())));
diff --git a/src/clients/cave/cmd_match.cc b/src/clients/cave/cmd_match.cc
index c4e272378..d2c22fb75 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 RepositoryMaskInfo> > &)
- {
- }
-
void visit(const MetadataValueKey<std::shared_ptr<const Contents> > &)
{
}
diff --git a/src/clients/cave/cmd_show.cc b/src/clients/cave/cmd_show.cc
index db633ded7..3cf5550f2 100644
--- a/src/clients/cave/cmd_show.cc
+++ b/src/clients/cave/cmd_show.cc
@@ -979,27 +979,6 @@ namespace
}
}
- void visit(const MetadataValueKey<std::shared_ptr<const RepositoryMaskInfo> > & k)
- {
- if (k.value())
- {
- 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'>(stringify(k.value()->mask_file())),
- fv<'i'>(std::string(indent, ' ')),
- fv<'b'>(important ? "true" : ""),
- fv<'p'>("")
- );
- for (Sequence<std::string>::ConstIterator i(k.value()->comment()->begin()), i_end(k.value()->comment()->end()) ;
- i != i_end ; ++i)
- out << fuc(fs_metadata_continued_value(),
- fv<'v'>(*i),
- fv<'i'>("")
- );
- }
- }
-
void visit(const MetadataTimeKey & k)
{
out << fuc(
diff --git a/src/clients/cave/format_plain_metadata_key.cc b/src/clients/cave/format_plain_metadata_key.cc
index 5897710e0..6845df5ca 100644
--- a/src/clients/cave/format_plain_metadata_key.cc
+++ b/src/clients/cave/format_plain_metadata_key.cc
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2008, 2009, 2010 Ciaran McCreesh
+ * Copyright (c) 2008, 2009, 2010, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -45,15 +45,6 @@ namespace
s << k.value().seconds();
}
- void visit(const MetadataValueKey<std::shared_ptr<const RepositoryMaskInfo> > & k)
- {
- if (k.value())
- {
- const std::shared_ptr<const Sequence<std::string> > c(k.value()->comment());
- s << join(c->begin(), c->end(), " ") << " " << k.value()->mask_file();
- }
- }
-
void visit(const MetadataValueKey<std::shared_ptr<const Contents> > &)
{
s << "<unprintable>";
diff --git a/src/clients/instruo/instruo.cc b/src/clients/instruo/instruo.cc
index 387a40892..3e291bbe9 100644
--- a/src/clients/instruo/instruo.cc
+++ b/src/clients/instruo/instruo.cc
@@ -102,11 +102,6 @@ namespace
const FSPath & PALUDIS_ATTRIBUTE((unused)) c(k.value());
}
- void visit(const MetadataValueKey<std::shared_ptr<const RepositoryMaskInfo> > & k)
- {
- const std::shared_ptr<const RepositoryMaskInfo> & PALUDIS_ATTRIBUTE((unused)) i(k.value());
- }
-
void visit(const MetadataSpecTreeKey<PlainTextSpecTree> & k)
{
const std::shared_ptr<const PlainTextSpecTree> & PALUDIS_ATTRIBUTE((unused)) t(k.value());