remove unnecessary function, revert mistaken change
@@ -135,13 +135,10 @@ pub struct Package {
impl Package {
pub fn attach_doc_and_module_comments(&mut self) {
- let hidden_modules = self.specify_hidden_modules();
for mut module in &mut self.modules {
- if !hidden_modules.contains(&module.name) {
module.attach_doc_and_module_comments();
}
}
- }
pub fn into_modules_hashmap(self) -> HashMap<String, Module> {
self.modules
@@ -149,15 +146,6 @@ impl Package {
.map(|m| (m.name.to_string(), m))
.collect()
}
-
- fn specify_hidden_modules(&self) -> Vec<String> {
- let modules = self
- .modules
- .iter()
- .map(|module| module.name.clone())
- .collect();
- self.config.specify_hidden_modules(modules)
- }
}
#[derive(Debug)]
