Skip to content

Remove the function_exists method of ConfigRegionAccess #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ pub type InterruptPin = u8;

// TODO: documentation
pub trait ConfigRegionAccess {
fn function_exists(&self, address: PciAddress) -> bool;

/// Performs a PCI read at `address` with `offset`.
///
/// # Safety
Expand All @@ -93,11 +91,6 @@ pub trait ConfigRegionAccess {
}

impl<T: ConfigRegionAccess + ?Sized> ConfigRegionAccess for &T {
#[inline]
fn function_exists(&self, address: PciAddress) -> bool {
(**self).function_exists(address)
}

#[inline]
unsafe fn read(&self, address: PciAddress, offset: u16) -> u32 {
(**self).read(address, offset)
Expand Down