Skip to content

Commit 77aaf4e

Browse files
authored
Merge pull request #1398 from rust-osdev/bishop-delete-help-st
uefi: Delete the deprecated helpers::system_table function
2 parents e2389fd + e50facd commit 77aaf4e

File tree

2 files changed

+4
-18
lines changed

2 files changed

+4
-18
lines changed

uefi/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# uefi - [Unreleased]
22

3+
## Changed
4+
- **Breaking:** Deleted deprecated function `helpers::system_table`.
5+
36

47
# uefi - 0.32.0 (2024-09-09)
58

uefi/src/helpers/mod.rs

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@
1818
//! [print_macro]: uefi::print!
1919
//! [println_macro]: uefi::println!
2020
21-
#[allow(deprecated)]
22-
use crate::prelude::{Boot, SystemTable};
23-
use crate::{table, Result};
21+
use crate::Result;
2422
#[doc(hidden)]
2523
pub use println::_print;
2624

@@ -32,21 +30,6 @@ mod logger;
3230
mod panic_handler;
3331
mod println;
3432

35-
/// Obtains a pointer to the system table.
36-
///
37-
/// This is meant to be used by higher-level libraries,
38-
/// which want a convenient way to access the system table singleton.
39-
///
40-
/// `init` must have been called first by the UEFI app.
41-
///
42-
/// The returned pointer is only valid until boot services are exited.
43-
#[must_use]
44-
#[deprecated(note = "use uefi::table::system_table_boot instead")]
45-
#[allow(deprecated)]
46-
pub fn system_table() -> SystemTable<Boot> {
47-
table::system_table_boot().expect("boot services are not active")
48-
}
49-
5033
/// Initialize all helpers defined in [`uefi::helpers`] whose Cargo features
5134
/// are activated.
5235
///

0 commit comments

Comments
 (0)