Skip to content

Commit

Permalink
delete unused code
Browse files Browse the repository at this point in the history
Signed-off-by: smallkirby <ssmallkirby@gmail.com>
  • Loading branch information
smallkirby committed Nov 10, 2024
1 parent 4b9288d commit 7baf83e
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions ymir/linux.zig
Original file line number Diff line number Diff line change
Expand Up @@ -110,18 +110,6 @@ pub const SetupHeader = extern struct {
return hdr;
}

/// Get the version string.
/// Caller must free the returned string.
pub fn getVersionString(self: @This(), allocator: std.mem.Allocator) ![]const u8 {
const minor = self.version & 0xFF;
const major = (self.version >> 8) & 0xFF;
return try std.fmt.allocPrint(
allocator,
"{d}.{d}",
.{ major, minor },
);
}

/// Get the offset of the protected-mode kernel code.
/// Real-mode code consists of the boot sector (1 sector == 512 bytes)
/// plus the setup code (`setup_sects` sectors).
Expand Down

0 comments on commit 7baf83e

Please sign in to comment.