From 26e1561622a4911a227dc7ce12993a889491b2d2 Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Mon, 25 Aug 2014 09:14:49 +0200 Subject: [PATCH] Removed unused code. (NEAR and i3_mode) --- config/config.c | 4 ---- include/rofi.h | 1 - 2 files changed, 5 deletions(-) diff --git a/config/config.c b/config/config.c index 7037599d..3597748f 100644 --- a/config/config.c +++ b/config/config.c @@ -60,10 +60,6 @@ Settings config = { .zeltak_mode = 0, // Terminal to use. (for ssh and open in terminal) .terminal_emulator = "x-terminal-emulator", -#ifdef I3 - // Auto-detected. no longer used. - .i3_mode = 0, -#endif // Key binding .window_key = "F12", .run_key = "mod1+F2", diff --git a/include/rofi.h b/include/rofi.h index 8951eb5b..1b46e682 100644 --- a/include/rofi.h +++ b/include/rofi.h @@ -3,7 +3,6 @@ #include #include -#define NEAR( a, o, b ) ( ( b ) > ( a ) - ( o ) && ( b ) < ( a ) + ( o ) ) #define OVERLAP( a, b, c, d ) ( ( ( a ) == ( c ) && ( b ) == ( d ) ) || MIN ( ( a ) + ( b ), ( c ) + ( d ) ) - MAX ( ( a ), ( c ) ) > 0 ) #define INTERSECT( x, y, w, h, x1, y1, w1, h1 ) ( OVERLAP ( ( x ), ( w ), ( x1 ), ( w1 ) ) && OVERLAP ( ( y ), ( h ), ( y1 ), ( h1 ) ) )