Cleanup: remove unused and duplicated macros 95/89195/3
authorRadoslaw Bartosiak <r.bartosiak@samsung.com>
Thu, 22 Sep 2016 10:23:48 +0000 (12:23 +0200)
committerDariusz Michaluk <d.michaluk@samsung.com>
Tue, 7 Aug 2018 14:02:52 +0000 (14:02 +0000)
Change-Id: I2ded9109ae8b68c8879f649f0abf86eb4c0062d8
Signed-off-by: Radoslaw Bartosiak <r.bartosiak@samsung.com>
src/client/include/client-common.h
src/dpl/log/src/abstract_log_provider.cpp
src/dpl/log/src/dlog_log_provider.cpp
src/dpl/log/src/sd_journal_provider.cpp

index 659acfaca67555f362b3b7fe4decbdb5657e5b55..e9ff18ed5d4f9bb1ea7af33a86646dd08f029ad4 100644 (file)
@@ -28,7 +28,6 @@
 #include <functional>
 
 #define SECURITY_MANAGER_API __attribute__((visibility("default")))
-#define SECURITY_MANAGER_UNUSED __attribute__((unused))
 
 namespace SecurityManager {
 
index 5b7574cc03de9f6ab297a01285147dd4757ee105..53d5416a8fb7e5ae4bbc3408c96caaa81d7c3e90 100644 (file)
  * @brief       This file is the implementation file of abstract log provider
  */
 #include <stddef.h>
+#include <dpl/availability.h>
 #include <dpl/log/abstract_log_provider.h>
 #include <cstring>
 
-#define UNUSED __attribute__((unused))
-
 namespace SecurityManager {
 namespace Log {
 
-void AbstractLogProvider::SetTag(const char *tag UNUSED) {}
+void AbstractLogProvider::SetTag(const char *tag SECURITY_MANAGER_UNUSED) {}
 
 const char *AbstractLogProvider::LocateSourceFileName(const char *filename)
 {
index 3341eeb251108fadf2501f7cf6a82bdd2acce95f..a8995edabff2a106fba1b6e2e19f4268111c32ba 100644 (file)
@@ -25,8 +25,6 @@
 #include <sstream>
 #include <dlog.h>
 
-#define UNUSED __attribute__((unused))
-
 namespace SecurityManager {
 namespace Log {
 std::string DLOGLogProvider::FormatMessage(const char *message,
index bd570ca384bbb8da93e94497dc24166249212f4f..b9f07cd3a88c6eb30662d3c2a23875630b8beeb9 100644 (file)
@@ -25,8 +25,6 @@
 #include <sstream>
 #include <systemd/sd-journal.h>
 
-#define UNUSED __attribute__((unused))
-
 namespace SecurityManager {
 namespace Log {
 std::string SdJournalProvider::FormatMessage(const char *message,