From 4abe483ac6c3d0df70c1f04b4b493a7c2cb7d78c Mon Sep 17 00:00:00 2001 From: Simon Fels Date: Tue, 28 Jun 2016 07:13:03 +0200 Subject: [PATCH] Remove unneeded input channel class --- src/CMakeLists.txt | 1 - src/anbox/input_channel.cpp | 42 --------------------------------- src/anbox/input_channel.h | 47 ------------------------------------- 3 files changed, 90 deletions(-) delete mode 100644 src/anbox/input_channel.cpp delete mode 100644 src/anbox/input_channel.h diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 77d10f0..1e4db51 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -37,7 +37,6 @@ set(SOURCES anbox/namespace_attacher.cpp anbox/container.cpp anbox/container_connector.cpp - anbox/input_channel.cpp anbox/common/fd.cpp anbox/common/fd_sets.h diff --git a/src/anbox/input_channel.cpp b/src/anbox/input_channel.cpp deleted file mode 100644 index b48ec5e..0000000 --- a/src/anbox/input_channel.cpp +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (C) 2016 Simon Fels - * - * This program is free software: you can redistribute it and/or modify it - * under the terms of the GNU General Public License version 3, as published - * by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranties of - * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR - * PURPOSE. See the GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program. If not, see . - * - */ - -#include "anbox/input_channel.h" -#include "anbox/logger.h" - -#include - -#include - -namespace anbox { -InputChannel::InputChannel() : - dev_(nullptr) { -} - -InputChannel::~InputChannel() { -} - -void InputChannel::setup(int width, int height) { -} - -void InputChannel::push_event(const Event &event) { -} - -std::string InputChannel::dev_path() const { - return ""; -} -} // namespace anbox diff --git a/src/anbox/input_channel.h b/src/anbox/input_channel.h deleted file mode 100644 index 215eb2b..0000000 --- a/src/anbox/input_channel.h +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (C) 2016 Simon Fels - * - * This program is free software: you can redistribute it and/or modify it - * under the terms of the GNU General Public License version 3, as published - * by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranties of - * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR - * PURPOSE. See the GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program. If not, see . - * - */ - -#ifndef ANBOX_INPUT_CHANNEL_H_ -#define ANBOX_INPUT_CHANNEL_H_ - -#include - -struct libevdev_uinput; - -namespace anbox { -class InputChannel { -public: - InputChannel(); - ~InputChannel(); - - struct Event { - int type; - int code; - int value; - }; - - void setup(int width, int height); - void push_event(const Event &event); - - std::string dev_path() const; - -private: - struct libevdev_uinput *dev_; -}; -} // namespace anbox - -#endif