From 9f241b51092998fb252823ccc5f6953813919eb6 Mon Sep 17 00:00:00 2001 From: InKryption Date: Sun, 21 Nov 2021 20:15:41 +0100 Subject: [PATCH] glfw: Remove 'NotInitialized' error --- glfw/src/errors.zig | 7 ------- 1 file changed, 7 deletions(-) diff --git a/glfw/src/errors.zig b/glfw/src/errors.zig index 72750dd2..292a4339 100644 --- a/glfw/src/errors.zig +++ b/glfw/src/errors.zig @@ -4,12 +4,6 @@ const c = @import("c.zig").c; /// Errors that GLFW can produce. pub const Error = error{ - /// GLFW has not been initialized. - /// - /// This occurs if a GLFW function was called that must not be called unless the library is - /// initialized. - NotInitialized, - /// No context is current for this thread. /// /// This occurs if a GLFW function was called that needs and operates on the current OpenGL or @@ -90,7 +84,6 @@ pub const Error = error{ fn convertError(e: c_int) Error!void { return switch (e) { c.GLFW_NO_ERROR => {}, - c.GLFW_NOT_INITIALIZED => Error.NotInitialized, c.GLFW_NO_CURRENT_CONTEXT => Error.NoCurrentContext, c.GLFW_INVALID_ENUM => Error.InvalidEnum, c.GLFW_INVALID_VALUE => Error.InvalidValue,