Remove unused function

This commit is contained in:
Lukas Scheller 2025-05-03 10:31:00 +02:00
parent 6def6bcd25
commit 30cfd70e40

View file

@ -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