aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-10-26 06:22:40 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-10-26 06:22:40 +0000
commit820dc79c6050f3b1e368282a13e4f584eaf791d1 (patch)
tree75c117aebee7edbae960310f7ae4518834df1b09
parenteee6041e53650c69970eeba79f8e0d84b53c5aab (diff)
downloadpaludis-820dc79c6050f3b1e368282a13e4f584eaf791d1.tar.gz
paludis-820dc79c6050f3b1e368282a13e4f584eaf791d1.tar.xz
Kill dead code
-rw-r--r--paludis/repositories/e/e_repository.cc28
1 files changed, 0 insertions, 28 deletions
diff --git a/paludis/repositories/e/e_repository.cc b/paludis/repositories/e/e_repository.cc
index 522ed8f..e7df6b4 100644
--- a/paludis/repositories/e/e_repository.cc
+++ b/paludis/repositories/e/e_repository.cc
@@ -726,34 +726,6 @@ ERepository::info(bool verbose) const
result->add_section(package_info);
}
-#if 0
- // don't inherit from master_repository, just causes clutter
- std::set<std::string> info_vars;
- if (_imp->layout->info_variables_file(_imp->params.location / "profiles").exists())
- {
- LineConfigFile vars(_imp->layout->info_variables_file(_imp->params.location / "profiles"), LineConfigFileOptions());
- info_vars.insert(vars.begin(), vars.end());
- }
-
- if (! info_vars.empty() && ! info_pkgs.empty() &&
- ! package_ids(QualifiedPackageName(*info_pkgs.begin()))->empty())
- {
- PackageDatabaseEntry e(QualifiedPackageName(*info_pkgs.begin()),
- *package_ids(QualifiedPackageName(*info_pkgs.begin()))->last(),
- name());
- tr1::shared_ptr<RepositoryInfoSection> variable_info(new RepositoryInfoSection("Variable information"));
- for (std::set<std::string>::const_iterator i(info_vars.begin()),
- i_end(info_vars.end()) ; i != i_end ; ++i)
- variable_info->add_kv(*i, get_environment_variable(e, *i));
-
- result->add_section(variable_info);
- }
- else if (! info_vars.empty())
- Log::get_instance()->message(ll_warning, lc_no_context,
- "Skipping info_vars for '" + stringify(name()) +
- "' because info_pkgs is not usable");
-#endif
-
return result;
}