Remove unused headers 79/138179/5
authorPiotr Sawicki <p.sawicki2@partner.samsung.com>
Tue, 11 Jul 2017 10:21:55 +0000 (12:21 +0200)
committerZofia Abramowska <z.abramowska@samsung.com>
Wed, 12 Jul 2017 15:35:37 +0000 (15:35 +0000)
* remove unused #include directives
* remove unused header file

Change-Id: Ic433b713cd08b45366e66170a0fea4071f1b8e28

src/ipc-lib/ask-user-channel.h [deleted file]
src/ipc-lib/ask-user-client-channel.cpp
src/ipc-lib/ask-user-server-channel.cpp

diff --git a/src/ipc-lib/ask-user-channel.h b/src/ipc-lib/ask-user-channel.h
deleted file mode 100644 (file)
index 7a3c892..0000000
+++ /dev/null
@@ -1,68 +0,0 @@
-/*
- *  Copyright (c) 2017 Samsung Electronics Co.
- *
- *  Licensed under the Apache License, Version 2.0 (the "License");
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License
- */
-/**
- * @file        channel.h
- * @author      Bartlomiej Grzelewski <b.grzelewski@samsung.com>
- * @brief
- */
-#pragma once
-
-#include <map>
-#include <memory>
-#include <string>
-#include <vector>
-
-#include <askuser-notification/ask-user-server-channel.h>
-#include <askuser-notification/raw-buffer.h>
-#include <askuser-notification/sock.h>
-
-
-namespace AskUser {
-namespace Protocol {
-
-struct SockDesc {
-    SockDesc(Sock psock)
-      : sock(std::move(psock))
-    {}
-    SockDesc(){}
-    Sock sock;
-    RawBuffer input;
-    RawBuffer output;
-};
-
-typedef std::map<int, SockDesc> SocketMap;
-
-class Channel : public IChannel {
-public:
-    Channel(ServerCallbacksPtr ptr)
-      : m_callbacks(std::move(ptr))
-    {}
-
-    void init();
-    virtual void process(ConnectionFd fd, int mask);
-    virtual void popupResponse(ConnectionFd fd, RequestId id, int response);
-    virtual ~Channel();
-
-private:
-    virtual void parse(const std::string &data, std::vector<std::string> &parsedData);
-
-    ServerCallbacksPtr m_callbacks;
-    SocketMap m_sockets;
-};
-
-} // namespace Protocol
-} // namespace AskUser
-
index b5e80db9eb7eac44727779c5185c600319792652..7a55d52b049ffa321c106fdfb0242550a6076d32 100644 (file)
@@ -19,7 +19,7 @@
  * @author      Piotr Sawicki <p.sawicki2@partner.samsung.com>
  * @brief       The implementation of ClientChannel.
  */
-#include <iostream>
+
 #include <sstream>
 
 #include <attributes/attributes.h>
index a5a90232c418c1d45fbe0802e606e4dda4e989f6..215a1f9306f5cf45bd0bfcdedb52a42357ff3049 100644 (file)
@@ -19,7 +19,7 @@
  * @author      Piotr Sawicki <p.sawicki2@partner.samsung.com>
  * @brief       The implementation of ServerChannel.
  */
-#include <iostream>
+
 #include <sstream>
 
 #include <askuser-notification/ask-user-server-channel.h>