From 1ab690ba18627ed6d6d71a0c5a2b40917ded92bd Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Sat, 23 Nov 2024 15:47:06 +0200 Subject: [PATCH] Dead code --- Cocoa/Document.h | 2 -- Cocoa/Document.m | 12 ------------ 2 files changed, 14 deletions(-) diff --git a/Cocoa/Document.h b/Cocoa/Document.h index e1b19949d..ffbc7f08b 100644 --- a/Cocoa/Document.h +++ b/Cocoa/Document.h @@ -83,8 +83,6 @@ enum model { + (NSImage *) imageFromData:(NSData *)data width:(NSUInteger) width height:(NSUInteger) height scale:(double) scale; -- (uint8_t) readMemory:(uint16_t) addr; -- (void) writeMemory:(uint16_t) addr value:(uint8_t)value; - (void) performAtomicBlock: (void (^)())block; - (void) connectLinkCable:(NSMenuItem *)sender; - (int)loadStateFile:(const char *)path noErrorOnNotFound:(bool)noErrorOnFileNotFound; diff --git a/Cocoa/Document.m b/Cocoa/Document.m index 77ca73e44..de5796dce 100644 --- a/Cocoa/Document.m +++ b/Cocoa/Document.m @@ -1784,18 +1784,6 @@ enum GBWindowResizeAction [self log:log withAttributes:0]; } -- (uint8_t) readMemory:(uint16_t)addr -{ - while (!GB_is_inited(&_gb)); - return GB_safe_read_memory(&_gb, addr); -} - -- (void) writeMemory:(uint16_t)addr value:(uint8_t)value -{ - while (!GB_is_inited(&_gb)); - GB_write_memory(&_gb, addr, value); -} - - (void)performAtomicBlock: (void (^)())block { while (!GB_is_inited(&_gb));