mirror of
https://github.com/FelixKratz/SketchyBar
synced 2024-11-22 11:23:02 +00:00
remove unused includes
This commit is contained in:
parent
ced353079d
commit
5b820d3b5d
5 changed files with 10 additions and 12 deletions
|
@ -1,5 +1,4 @@
|
|||
#pragma once
|
||||
#include <Carbon/Carbon.h>
|
||||
#include <mach/mach.h>
|
||||
#include "misc/memory_pool.h"
|
||||
#include "bar_manager.h"
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
#include <Carbon/Carbon.h>
|
||||
#include "event.h"
|
||||
#include "event_loop.h"
|
||||
|
||||
|
|
10
src/mouse.c
10
src/mouse.c
|
@ -1,7 +1,17 @@
|
|||
#include <Carbon/Carbon.h>
|
||||
#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: {
|
||||
|
|
|
@ -1,14 +1,5 @@
|
|||
#pragma once
|
||||
#include <Carbon/Carbon.h>
|
||||
#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);
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
#include "Carbon/Carbon.h"
|
||||
#include "CoreAudio/CoreAudio.h"
|
||||
#include <CoreAudio/AudioHardware.h>
|
||||
|
||||
|
|
Loading…
Reference in a new issue