Skip to content

Commit 34d9d2a

Browse files
committed
Remove deprecated Program::get_id_from_fd() method
Remove the Program::get_id_from_fd() method. This method has been deprecated a while back and can now safely be removed, as we are about to bump the crate's minor version. Signed-off-by: Daniel Müller <[email protected]>
1 parent 0d975b4 commit 34d9d2a

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

libbpf-rs/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ Unreleased
22
----------
33
- Added `target_obj_id` and `target_btf_id` fields to `TracingLinkInfo`
44
to expose BTF information directly from kernel queries
5+
- Removed previously deprecated `Program::get_id_by_fd` method
56
- Bumped minimum Rust version to `1.82`
67

78

libbpf-rs/src/program.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -703,14 +703,6 @@ impl<'obj> Program<'obj> {
703703
Ok(unsafe { OwnedFd::from_raw_fd(fd) })
704704
}
705705

706-
// TODO: Remove once 0.25 is cut.
707-
#[deprecated = "renamed to Program::id_from_fd"]
708-
#[expect(missing_docs)]
709-
#[inline]
710-
pub fn get_id_by_fd(fd: BorrowedFd<'_>) -> Result<u32> {
711-
Self::id_from_fd(fd)
712-
}
713-
714706
/// Returns program ID given a file descriptor.
715707
pub fn id_from_fd(fd: BorrowedFd<'_>) -> Result<u32> {
716708
let mut prog_info = libbpf_sys::bpf_prog_info::default();

0 commit comments

Comments
 (0)