diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-05-15 13:00:20 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-05-15 13:00:20 +0200 |
commit | ca0024ba0d216dbe926771e6645ce43681d7f9c5 (patch) | |
tree | acc1e14371e2d878c7abc463c3476ee28dbc432c /tracker-hatire | |
parent | dd79cbba8da99d16b9c8ecb7fd861e6b98080743 (diff) |
tracker/hatire: remove unused unused macro
Diffstat (limited to 'tracker-hatire')
-rw-r--r-- | tracker-hatire/thread.cpp | 9 | ||||
-rw-r--r-- | tracker-hatire/thread.hpp | 8 |
2 files changed, 1 insertions, 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 <QTimer> #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(); |