summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rw-r--r--src/include/macros.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/include/macros.h b/src/include/macros.h
index ff049ddf1..aa1719d2f 100644
--- a/src/include/macros.h
+++ b/src/include/macros.h
@@ -14,12 +14,10 @@
*/
// I'm of the opinion that this file should be removed, so I will in the future take the necessary steps to wipe it out.
-// Macros are not in general bad, but these particular ones are rather ugly. Especially that sp_round one. --Liam
+// Macros are not in general bad, but these particular ones are rather ugly. --Liam
#define sp_signal_disconnect_by_data(o,d) g_signal_handlers_disconnect_matched(o, G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, d)
-#define sp_round(v,m) (((v) < 0.0) ? ((ceil((v) / (m) - 0.5)) * (m)) : ((floor((v) / (m) + 0.5)) * (m)))
-
// "primary" modifier: Ctrl on Linux/Windows and Cmd on macOS.
// note: Could query this at runtime with
// `gdk_keymap_get_modifier_mask(..., GDK_MODIFIER_INTENT_PRIMARY_ACCELERATOR)`