From: Hwankyu Jhun Date: Thu, 16 Sep 2021 09:02:27 +0000 (+0900) Subject: Fix coding style X-Git-Tag: submit/tizen/20210923.064123~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=25e42b0cf85aee8a298df92b7ec466f47d9c8465;p=platform%2Fcore%2Fappfw%2Frpc-port.git Fix coding style - Fixes header guards properly - Removes unnecessary header inclusion - Removes unused method Change-Id: Id7fcc4b985f094225ea1d3c45b0251a0eb9b8e4b Signed-off-by: Hwankyu Jhun --- diff --git a/src/ac-internal.cc b/src/ac-internal.cc index 3f3af65..98addbb 100644 --- a/src/ac-internal.cc +++ b/src/ac-internal.cc @@ -93,12 +93,6 @@ int AccessController::Check(int fd, const std::string& sender_appid) { return ret; } -// LCOV_EXCL_START -int AccessController::SetCache(const std::string& sender) { - return -1; -} -// LCOV_EXCL_STOP - AccessController::Cynara::Cynara() : cynara_(nullptr, cynara_finish), client_(nullptr, std::free), user_(nullptr, std::free) { diff --git a/src/ac-internal.hh b/src/ac-internal.hh index 051a56d..7b60c62 100644 --- a/src/ac-internal.hh +++ b/src/ac-internal.hh @@ -53,7 +53,6 @@ class AccessController { std::unique_ptr user_; }; - int SetCache(const std::string& sender); int CheckTrusted(const std::string& sender_appid); int CheckPrivilege(const Cynara& c); diff --git a/src/message-sending-thread-internal.cc b/src/message-sending-thread-internal.cc index 470c1f5..e74c895 100644 --- a/src/message-sending-thread-internal.cc +++ b/src/message-sending-thread-internal.cc @@ -14,11 +14,6 @@ * limitations under the License. */ -#include -#include - -#include - #include "log-private.hh" #include "message-sending-thread-internal.hh" diff --git a/src/message-sending-thread-internal.hh b/src/message-sending-thread-internal.hh index b71b136..1d3acad 100644 --- a/src/message-sending-thread-internal.hh +++ b/src/message-sending-thread-internal.hh @@ -14,11 +14,11 @@ * limitations under the License. */ -#ifndef MESSAGE_SENDING_THREAD_HH_ -#define MESSAGE_SENDING_THREAD_HH_ +#ifndef MESSAGE_SENDING_THREAD_INTERNAL_HH_ +#define MESSAGE_SENDING_THREAD_INTERNAL_HH_ #include -#include +#include #include #include @@ -54,4 +54,4 @@ class MessageSendingThread { } // namespace internal } // namespace rpc_port -#endif // MESSAGE_SENDING_THREAD_HH_ +#endif // MESSAGE_SENDING_THREAD_INTERNAL_HH_