From ca0024ba0d216dbe926771e6645ce43681d7f9c5 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 15 May 2016 13:00:20 +0200 Subject: tracker/hatire: remove unused unused macro --- tracker-hatire/thread.cpp | 9 --------- tracker-hatire/thread.hpp | 8 +------- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/tracker-hatire/thread.cpp b/tracker-hatire/thread.cpp index d512e463..74abf628 100644 --- a/tracker-hatire/thread.cpp +++ b/tracker-hatire/thread.cpp @@ -274,15 +274,6 @@ void hatire_thread::serial_info_impl() #endif } -#ifdef __GNUC__ -# define unused(t, i) t __attribute__((unused)) i -#else -# define unused(t, i) t i -#endif - -//send command to Arduino - - void hatire_thread::on_serial_read() { { diff --git a/tracker-hatire/thread.hpp b/tracker-hatire/thread.hpp index 12d07f97..665df15f 100644 --- a/tracker-hatire/thread.hpp +++ b/tracker-hatire/thread.hpp @@ -27,12 +27,6 @@ enum results # include #endif -#ifdef __GNUC__ -# define unused(t, i) t __attribute__((unused)) i -#else -# define unused(t, i) t i -#endif - struct serial_result { serial_result() : code(result_ok) {} @@ -74,7 +68,7 @@ private slots: void on_serial_read(); void teardown_serial(); - void sendcmd_impl(unused(const QByteArray, &cmd)); + void sendcmd_impl(const QByteArray, &cmd); void sendcmd_str_impl(const QString& str) { sendcmd(str.toLatin1()); } void serial_info_impl(); serial_result init_serial_port_impl(); -- cgit v1.2.3