From be2e0829618068e893a346b6ae4c7ed2faa1a440 Mon Sep 17 00:00:00 2001 From: Norihiro Kamae Date: Sun, 22 Jan 2023 17:22:35 +0900 Subject: [PATCH] mac-capture: Remove unused macros --- plugins/mac-capture/mac-audio.c | 2 -- plugins/mac-capture/mac-display-capture.m | 4 ---- 2 files changed, 6 deletions(-) diff --git a/plugins/mac-capture/mac-audio.c b/plugins/mac-capture/mac-audio.c index e8a066162..074888d09 100644 --- a/plugins/mac-capture/mac-audio.c +++ b/plugins/mac-capture/mac-audio.c @@ -22,8 +22,6 @@ #define BUS_OUTPUT 0 #define BUS_INPUT 1 -#define MAX_DEVICES 20 - #define set_property AudioUnitSetProperty #define get_property AudioUnitGetProperty diff --git a/plugins/mac-capture/mac-display-capture.m b/plugins/mac-capture/mac-display-capture.m index 8b7177339..3c5d1ea1d 100644 --- a/plugins/mac-capture/mac-display-capture.m +++ b/plugins/mac-capture/mac-display-capture.m @@ -428,10 +428,6 @@ static const char *display_capture_getname(void *unused) return obs_module_text("DisplayCapture"); } -#define CROPPED_LENGTH(rect, origin_, length) \ - fabs((rect##.size.##length - dc->crop_rect.size.##length) - \ - (rect##.origin.##origin_ + dc->crop_rect.origin.##origin_)) - static uint32_t display_capture_getwidth(void *data) { struct display_capture *dc = data;