mach: remove Action enum and all references to it

This commit is contained in:
iddev5 2022-05-18 18:25:20 +05:30 committed by Stephen Gutekanst
parent 7486b0ebea
commit f1e7c10fbb
2 changed files with 0 additions and 14 deletions

View file

@ -1,9 +1,3 @@
pub const Action = enum {
release,
press,
repeat,
};
pub const Key = enum { pub const Key = enum {
a, a,
b, b,

View file

@ -105,14 +105,6 @@ pub const CoreGlfw = struct {
return null; return null;
} }
fn toMachAction(action: glfw.Action) enums.Action {
return switch (action) {
.press => .press,
.release => .release,
.repeat => .repeat,
};
}
fn toMachKey(key: glfw.Key) enums.Key { fn toMachKey(key: glfw.Key) enums.Key {
return switch (key) { return switch (key) {
.a => .a, .a => .a,