From 4802d2e95324c02f227f9ffe9cea0ecaee0e74b4 Mon Sep 17 00:00:00 2001 From: Rico Tiongson Date: Sat, 2 Mar 2019 18:06:24 +0800 Subject: [PATCH] Remove depcreacted cpp scripts in root --- comfortable-swipe.compile.sh | 2 - comfortable-swipe.cpp | 73 ------------------------------------ 2 files changed, 75 deletions(-) delete mode 100755 comfortable-swipe.compile.sh delete mode 100644 comfortable-swipe.cpp diff --git a/comfortable-swipe.compile.sh b/comfortable-swipe.compile.sh deleted file mode 100755 index d839b64..0000000 --- a/comfortable-swipe.compile.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -g++ $(dirname $0)/comfortable-swipe.cpp -std=c++11 -O2 -lxdo -Wno-unused-result -o $1 diff --git a/comfortable-swipe.cpp b/comfortable-swipe.cpp deleted file mode 100644 index 9c75fa2..0000000 --- a/comfortable-swipe.cpp +++ /dev/null @@ -1,73 +0,0 @@ -/* -Comfortable Swipe -by Rico Tiongson - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY 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 // std::ios -#include // std::cin, std::cout, std::cerr -#include // std::string -#include "lib/comfortable-swipe" - -/* A FORWARD DECLARATION */ -int main(int argc, char** args); - - -/* MAIN DRIVER FUNCTION */ -int main(int argc, char** args) -{ - // improve buffering by decoupling loggers from stdio - std::ios::sync_with_stdio(false); - std::cin.tie(0); - std::cout.tie(0); - std::cerr.tie(0); - - if (argc > 1) - { - std::string arg = args[1]; - - // select based on argument - if (arg == "start") - comfortable_swipe::service::start(); - - else if (arg == "stop") - comfortable_swipe::service::stop(); - - else if (arg == "restart") - comfortable_swipe::service::restart(); - - else if (arg == "buffer") - comfortable_swipe::service::buffer(); - - else if (arg == "autostart") - comfortable_swipe::service::autostart(); - - else if (arg == "config") - comfortable_swipe::service::config(); - - else if (arg == "debug") - comfortable_swipe::service::debug(); - - else if (arg == "status") - comfortable_swipe::service::status(); - - else /* if (arg == "help") */ - comfortable_swipe::service::help(); - } - else - comfortable_swipe::service::help(); - - return 0; -}