From 7d4ab6db2cc9eace0a9991147a8cb2f45b267f76 Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Wed, 2 Nov 2022 09:00:32 -0300 Subject: [PATCH] style: remove unused imports --- src/core/bus/io.zig | 9 --------- src/core/ppu.zig | 2 -- 2 files changed, 11 deletions(-) diff --git a/src/core/bus/io.zig b/src/core/bus/io.zig index 0caac22..b4761b4 100644 --- a/src/core/bus/io.zig +++ b/src/core/bus/io.zig @@ -453,8 +453,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, @@ -467,13 +465,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 { diff --git a/src/core/ppu.zig b/src/core/ppu.zig index 5af4105..e57ea90 100644 --- a/src/core/ppu.zig +++ b/src/core/ppu.zig @@ -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;