Fix coding style 57/264357/1
authorHwankyu Jhun <h.jhun@samsung.com>
Thu, 16 Sep 2021 09:02:27 +0000 (18:02 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Thu, 16 Sep 2021 09:04:13 +0000 (18:04 +0900)
- Fixes header guards properly
- Removes unnecessary header inclusion
- Removes unused method

Change-Id: Id7fcc4b985f094225ea1d3c45b0251a0eb9b8e4b
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/ac-internal.cc
src/ac-internal.hh
src/message-sending-thread-internal.cc
src/message-sending-thread-internal.hh

index 3f3af6503406658d74e6a9bfeae40530b9205bd9..98addbb7686fab070a56fe6d9fccef3b6ea8db30 100644 (file)
@@ -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) {
index 051a56d8f5cf0efa0c67701613339c634f9c6aa3..7b60c62ae9be696de01a6fe134747b1b57ad6669 100644 (file)
@@ -53,7 +53,6 @@ class AccessController {
     std::unique_ptr<char, decltype(std::free)*> user_;
   };
 
-  int SetCache(const std::string& sender);
   int CheckTrusted(const std::string& sender_appid);
   int CheckPrivilege(const Cynara& c);
 
index 470c1f5c3a0db35421b3360d8eb2692ad739887d..e74c8956e5d1b938e5f7a15657e6006811dbbf33 100644 (file)
  * limitations under the License.
  */
 
-#include <gio/gio.h>
-#include <glib-unix.h>
-
-#include <memory>
-
 #include "log-private.hh"
 #include "message-sending-thread-internal.hh"
 
index b71b13607165a1f4a43c14c2886c035658c8872c..1d3acad7cd2aa33d67c1d0d7f2252359dd8ce0bf 100644 (file)
  * 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 <gio/gio.h>
-#include <glib-unix.h>
+#include <glib.h>
 
 #include <condition_variable>
 #include <functional>
@@ -54,4 +54,4 @@ class MessageSendingThread {
 }  // namespace internal
 }  // namespace rpc_port
 
-#endif  // MESSAGE_SENDING_THREAD_HH_
+#endif  // MESSAGE_SENDING_THREAD_INTERNAL_HH_