Skip to content

Commit

Permalink
uefi: Delete the deprecated helpers::system_table function
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasbishop committed Sep 12, 2024
1 parent 81ac944 commit e50facd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 18 deletions.
3 changes: 3 additions & 0 deletions uefi/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# uefi - [Unreleased]

## Changed
- **Breaking:** Deleted deprecated function `helpers::system_table`.


# uefi - 0.32.0 (2024-09-09)

Expand Down
19 changes: 1 addition & 18 deletions uefi/src/helpers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@
//! [print_macro]: uefi::print!
//! [println_macro]: uefi::println!

#[allow(deprecated)]
use crate::prelude::{Boot, SystemTable};
use crate::{table, Result};
use crate::Result;
#[doc(hidden)]
pub use println::_print;

Expand All @@ -32,21 +30,6 @@ mod logger;
mod panic_handler;
mod println;

/// Obtains a pointer to the system table.
///
/// This is meant to be used by higher-level libraries,
/// which want a convenient way to access the system table singleton.
///
/// `init` must have been called first by the UEFI app.
///
/// The returned pointer is only valid until boot services are exited.
#[must_use]
#[deprecated(note = "use uefi::table::system_table_boot instead")]
#[allow(deprecated)]
pub fn system_table() -> SystemTable<Boot> {
table::system_table_boot().expect("boot services are not active")
}

/// Initialize all helpers defined in [`uefi::helpers`] whose Cargo features
/// are activated.
///
Expand Down

0 comments on commit e50facd

Please sign in to comment.