all: remove ineffective _ = variable assignments (#530)
Lastest Zig complains about this, so they must removed to build.
This commit is contained in:
parent
98d929611c
commit
b8c48d6321
4 changed files with 0 additions and 6 deletions
|
|
@ -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`.
|
/// * 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 {
|
pub fn Entities(comptime all_components: anytype) type {
|
||||||
// TODO: validate all_components is a namespaced component set in the form we expect
|
// TODO: validate all_components is a namespaced component set in the form we expect
|
||||||
_ = all_components;
|
|
||||||
return struct {
|
return struct {
|
||||||
allocator: Allocator,
|
allocator: Allocator,
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -62,13 +62,11 @@ const GamepadState = extern struct {
|
||||||
|
|
||||||
/// Returns the state of the specified gamepad button.
|
/// Returns the state of the specified gamepad button.
|
||||||
pub fn getButton(self: @This(), which: GamepadButton) Action {
|
pub fn getButton(self: @This(), which: GamepadButton) Action {
|
||||||
_ = self;
|
|
||||||
return @intToEnum(Action, self.buttons[@intCast(u32, @enumToInt(which))]);
|
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.
|
/// 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 {
|
pub fn getAxis(self: @This(), which: GamepadAxis) f32 {
|
||||||
_ = self;
|
|
||||||
return self.axes[@intCast(u32, @enumToInt(which))];
|
return self.axes[@intCast(u32, @enumToInt(which))];
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -73,7 +73,6 @@ pub const Device = struct {
|
||||||
frame_count_min: c_int,
|
frame_count_min: c_int,
|
||||||
frame_count_max: c_int,
|
frame_count_max: c_int,
|
||||||
) callconv(.C) void {
|
) callconv(.C) void {
|
||||||
_ = frame_count_min;
|
|
||||||
const outstream = SoundIoOutStream{ .handle = @ptrCast(*c.SoundIoOutStream, c_outstream) };
|
const outstream = SoundIoOutStream{ .handle = @ptrCast(*c.SoundIoOutStream, c_outstream) };
|
||||||
const device = @ptrCast(*Device, @alignCast(@alignOf(Device), outstream.handle.userdata));
|
const device = @ptrCast(*Device, @alignCast(@alignOf(Device), outstream.handle.userdata));
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -290,8 +290,6 @@ pub const Platform = struct {
|
||||||
}),
|
}),
|
||||||
else => {},
|
else => {},
|
||||||
}
|
}
|
||||||
|
|
||||||
_ = mods;
|
|
||||||
}
|
}
|
||||||
}.callback;
|
}.callback;
|
||||||
platform.window.setMouseButtonCallback(mouse_button_callback);
|
platform.window.setMouseButtonCallback(mouse_button_callback);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue