freetype: remove deinit error logs
the error only happens when handle is null wich is unreachable
This commit is contained in:
parent
7a0d39c274
commit
2794a7438f
2 changed files with 2 additions and 6 deletions
|
|
@ -56,9 +56,7 @@ pub const CharmapIterator = struct {
|
|||
handle: c.FT_Face,
|
||||
|
||||
pub fn deinit(self: Face) void {
|
||||
intToError(c.FT_Done_Face(self.handle)) catch |err| {
|
||||
std.log.err("mach/freetype: Failed to destroy Face: {}", .{err});
|
||||
};
|
||||
_ = c.FT_Done_Face(self.handle);
|
||||
}
|
||||
|
||||
pub fn attachFile(self: Face, path: []const u8) Error!void {
|
||||
|
|
|
|||
|
|
@ -24,9 +24,7 @@ pub fn init() Error!Library {
|
|||
}
|
||||
|
||||
pub fn deinit(self: Library) void {
|
||||
intToError(c.FT_Done_FreeType(self.handle)) catch |err| {
|
||||
std.log.err("mach/freetype: Failed to deinitialize Library: {}", .{err});
|
||||
};
|
||||
_ = c.FT_Done_FreeType(self.handle);
|
||||
}
|
||||
|
||||
pub fn newFace(self: Library, path: []const u8, face_index: i32) Error!Face {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue