style: remove unused imports
This commit is contained in:
parent
a51ab6015d
commit
faaa7d8a92
|
@ -428,8 +428,6 @@ const u8WriteKind = enum { Hi, Lo };
|
|||
|
||||
/// Write-only
|
||||
pub const WinH = extern union {
|
||||
const Self = @This();
|
||||
|
||||
x2: Bitfield(u16, 0, 8),
|
||||
x1: Bitfield(u16, 8, 8),
|
||||
raw: u16,
|
||||
|
@ -442,13 +440,6 @@ pub const WinV = extern union {
|
|||
y2: Bitfield(u16, 0, 8),
|
||||
y1: Bitfield(u16, 8, 8),
|
||||
raw: u16,
|
||||
|
||||
pub fn set(self: *Self, comptime K: u8WriteKind, value: u8) void {
|
||||
self.raw = switch (K) {
|
||||
.Hi => (@as(u16, value) << 8) | self.raw & 0xFF,
|
||||
.Lo => (self.raw & 0xFF00) | value,
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
pub const WinIn = extern union {
|
||||
|
|
|
@ -9,7 +9,6 @@ const dma = @import("bus/dma.zig");
|
|||
const Oam = @import("ppu/Oam.zig");
|
||||
const Palette = @import("ppu/Palette.zig");
|
||||
const Vram = @import("ppu/Vram.zig");
|
||||
const EventKind = @import("scheduler.zig").EventKind;
|
||||
const Scheduler = @import("scheduler.zig").Scheduler;
|
||||
const Arm7tdmi = @import("cpu.zig").Arm7tdmi;
|
||||
const FrameBuffer = @import("../util.zig").FrameBuffer;
|
||||
|
@ -20,7 +19,6 @@ const log = std.log.scoped(.PPU);
|
|||
const getHalf = util.getHalf;
|
||||
const setHalf = util.setHalf;
|
||||
const setQuart = util.setQuart;
|
||||
const pollDmaOnBlank = @import("bus/dma.zig").pollDmaOnBlank;
|
||||
|
||||
pub const width = 240;
|
||||
pub const height = 160;
|
||||
|
|
Loading…
Reference in New Issue