diff --git a/src/librustc/lint/mod.rs b/src/librustc/lint/mod.rs index 4da146b1e5d5..3b460c29b0c4 100644 --- a/src/librustc/lint/mod.rs +++ b/src/librustc/lint/mod.rs @@ -646,11 +646,6 @@ impl LintBuffer { pub fn take(&mut self, id: ast::NodeId) -> Vec { self.map.remove(&id).unwrap_or_default() } - - pub fn get_any(&self) -> Option<&[BufferedEarlyLint]> { - let key = self.map.keys().next().map(|k| *k); - key.map(|k| &self.map[&k][..]) - } } pub fn struct_lint_level<'a>(sess: &'a Session,