Skip to content

Commit 30cfd70

Browse files
committed
Remove unused function
1 parent 6def6bc commit 30cfd70

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

vhdl_lang/src/named_entity/formal_region.rs

+1-9
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// Copyright (c) 2022, Olof Kraigher [email protected]
66

77
use crate::{
8-
ast::{Designator, InterfaceType, Mode, ObjectClass},
8+
ast::{Designator, InterfaceType, Mode},
99
Diagnostic, SrcPos,
1010
};
1111

@@ -227,14 +227,6 @@ impl<'a> FormalRegion<'a> {
227227
pub fn nth(&self, idx: usize) -> Option<InterfaceEnt<'a>> {
228228
self.entities.get(idx).cloned()
229229
}
230-
231-
pub fn unary(&self) -> Option<InterfaceEnt<'a>> {
232-
if self.len() == 1 {
233-
self.nth(0)
234-
} else {
235-
None
236-
}
237-
}
238230
}
239231

240232
/// The formal region is an ordered list of interface elements such as ports, generics and subprogram arguments

0 commit comments

Comments
 (0)