Skip to content

Commit f02cac2

Browse files
bjorn3IsaacWoods
authored andcommitted
Remove the function_exists method of ConfigRegionAccess
It isn't used anywhere and pci_types can implement it itself if it needs to by checking if the vendor and device id fields are both 0xFFFF. Fixes #14
1 parent 2c1c472 commit f02cac2

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/lib.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,6 @@ pub type InterruptPin = u8;
7575

7676
// TODO: documentation
7777
pub trait ConfigRegionAccess {
78-
fn function_exists(&self, address: PciAddress) -> bool;
79-
8078
/// Performs a PCI read at `address` with `offset`.
8179
///
8280
/// # Safety
@@ -93,11 +91,6 @@ pub trait ConfigRegionAccess {
9391
}
9492

9593
impl<T: ConfigRegionAccess + ?Sized> ConfigRegionAccess for &T {
96-
#[inline]
97-
fn function_exists(&self, address: PciAddress) -> bool {
98-
(**self).function_exists(address)
99-
}
100-
10194
#[inline]
10295
unsafe fn read(&self, address: PciAddress, offset: u16) -> u32 {
10396
(**self).read(address, offset)

0 commit comments

Comments
 (0)