all: remove ineffective _ = variable assignments (#530)

Lastest Zig complains about this, so they must removed to build.
This commit is contained in:
locriacyber 2022-09-14 16:42:29 +00:00 committed by GitHub
parent 98d929611c
commit b8c48d6321
Failed to generate hash of commit
4 changed files with 0 additions and 6 deletions

View file

@ -342,7 +342,6 @@ pub const void_archetype_hash = std.math.maxInt(u64);
/// * ComponentStorage(T) is a column of data within a table for a single type of component `T`.
pub fn Entities(comptime all_components: anytype) type {
// TODO: validate all_components is a namespaced component set in the form we expect
_ = all_components;
return struct {
allocator: Allocator,

View file

@ -62,13 +62,11 @@ const GamepadState = extern struct {
/// Returns the state of the specified gamepad button.
pub fn getButton(self: @This(), which: GamepadButton) Action {
_ = self;
return @intToEnum(Action, self.buttons[@intCast(u32, @enumToInt(which))]);
}
/// Returns the status of the specified gamepad axis, in the range -1.0 to 1.0 inclusive.
pub fn getAxis(self: @This(), which: GamepadAxis) f32 {
_ = self;
return self.axes[@intCast(u32, @enumToInt(which))];
}
};

View file

@ -73,7 +73,6 @@ pub const Device = struct {
frame_count_min: c_int,
frame_count_max: c_int,
) callconv(.C) void {
_ = frame_count_min;
const outstream = SoundIoOutStream{ .handle = @ptrCast(*c.SoundIoOutStream, c_outstream) };
const device = @ptrCast(*Device, @alignCast(@alignOf(Device), outstream.handle.userdata));

View file

@ -290,8 +290,6 @@ pub const Platform = struct {
}),
else => {},
}
_ = mods;
}
}.callback;
platform.window.setMouseButtonCallback(mouse_button_callback);