mirror of
https://github.com/VHDL-LS/rust_hdl.git
synced 2025-08-04 10:59:30 +00:00
Remove unused function
This commit is contained in:
parent
6def6bcd25
commit
30cfd70e40
1 changed files with 1 additions and 9 deletions
|
@ -5,7 +5,7 @@
|
|||
// Copyright (c) 2022, Olof Kraigher olof.kraigher@gmail.com
|
||||
|
||||
use crate::{
|
||||
ast::{Designator, InterfaceType, Mode, ObjectClass},
|
||||
ast::{Designator, InterfaceType, Mode},
|
||||
Diagnostic, SrcPos,
|
||||
};
|
||||
|
||||
|
@ -227,14 +227,6 @@ impl<'a> FormalRegion<'a> {
|
|||
pub fn nth(&self, idx: usize) -> Option<InterfaceEnt<'a>> {
|
||||
self.entities.get(idx).cloned()
|
||||
}
|
||||
|
||||
pub fn unary(&self) -> Option<InterfaceEnt<'a>> {
|
||||
if self.len() == 1 {
|
||||
self.nth(0)
|
||||
} else {
|
||||
None
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// The formal region is an ordered list of interface elements such as ports, generics and subprogram arguments
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue