From 5b820d3b5d2ae881481d7275efa11750353b8763 Mon Sep 17 00:00:00 2001 From: Felix Kratz Date: Mon, 26 Jun 2023 14:18:09 +0200 Subject: [PATCH] remove unused includes --- src/event.h | 1 - src/media.m | 1 - src/mouse.c | 10 ++++++++++ src/mouse.h | 9 --------- src/volume.h | 1 - 5 files changed, 10 insertions(+), 12 deletions(-) diff --git a/src/event.h b/src/event.h index fee374c..9c97642 100644 --- a/src/event.h +++ b/src/event.h @@ -1,5 +1,4 @@ #pragma once -#include #include #include "misc/memory_pool.h" #include "bar_manager.h" diff --git a/src/media.m b/src/media.m index 6750424..d452002 100644 --- a/src/media.m +++ b/src/media.m @@ -1,4 +1,3 @@ -#include #include "event.h" #include "event_loop.h" diff --git a/src/mouse.c b/src/mouse.c index da5930b..d44ada5 100644 --- a/src/mouse.c +++ b/src/mouse.c @@ -1,7 +1,17 @@ +#include #include "mouse.h" extern struct event_loop g_event_loop; +static const EventTypeSpec mouse_events [] = { + { kEventClassMouse, kEventMouseDown }, + { kEventClassMouse, kEventMouseUp }, + { kEventClassMouse, kEventMouseDragged }, + { kEventClassMouse, kEventMouseEntered }, + { kEventClassMouse, kEventMouseExited } +}; + + static pascal OSStatus mouse_handler(EventHandlerCallRef next, EventRef e, void *data) { switch (GetEventKind(e)) { case kEventMouseUp: { diff --git a/src/mouse.h b/src/mouse.h index 6e13ad6..f4ba0be 100644 --- a/src/mouse.h +++ b/src/mouse.h @@ -1,14 +1,5 @@ #pragma once -#include #include "event_loop.h" #include "event.h" -static const EventTypeSpec mouse_events [] = { - { kEventClassMouse, kEventMouseDown }, - { kEventClassMouse, kEventMouseUp }, - { kEventClassMouse, kEventMouseDragged }, - { kEventClassMouse, kEventMouseEntered }, - { kEventClassMouse, kEventMouseExited } -}; - void mouse_begin(void); diff --git a/src/volume.h b/src/volume.h index b5572c7..7561a64 100644 --- a/src/volume.h +++ b/src/volume.h @@ -1,4 +1,3 @@ -#include "Carbon/Carbon.h" #include "CoreAudio/CoreAudio.h" #include