aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2019-12-29 19:03:52 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2019-12-29 19:03:52 +0100
commit8364c88dd3d6d2d69873d33b03e90b591e4d5570 (patch)
treedfd0d582476b3ecb85701168e02cc6883db674a1
parentHere you go, object-oriented lowbat (diff)
downloadlowbat-gnu-8364c88dd3d6d2d69873d33b03e90b591e4d5570.tar.gz
lowbat-gnu-8364c88dd3d6d2d69873d33b03e90b591e4d5570.tar.bz2
lowbat-gnu-8364c88dd3d6d2d69873d33b03e90b591e4d5570.tar.xz
lowbat-gnu-8364c88dd3d6d2d69873d33b03e90b591e4d5570.tar.zst
lowbat-gnu-8364c88dd3d6d2d69873d33b03e90b591e4d5570.zip
Removed useless files
-rw-r--r--Makefile4
-rw-r--r--src/jo_exec.cpp2
-rw-r--r--src/jo_notify.cpp24
3 files changed, 2 insertions, 28 deletions
diff --git a/Makefile b/Makefile
index 1259ef0..95d98fd 100644
--- a/Makefile
+++ b/Makefile
@@ -18,8 +18,8 @@ INCS = jo_lowbat.hpp
OBJS = $(patsubst ${SRCS_DIR}%.cpp,${OBJS_DIR}%.o,${SRCS})
-DEBUG += Og -ggdb
-DEBUG = -ggdb
+DEBUG = -Og
+DEBUG += -ggdb
FSANITIZE = -fsanitize=address
CXX = g++
diff --git a/src/jo_exec.cpp b/src/jo_exec.cpp
deleted file mode 100644
index bbee5bb..0000000
--- a/src/jo_exec.cpp
+++ /dev/null
@@ -1,2 +0,0 @@
-#include <jo_lowbat.hpp>
-
diff --git a/src/jo_notify.cpp b/src/jo_notify.cpp
deleted file mode 100644
index b357806..0000000
--- a/src/jo_notify.cpp
+++ /dev/null
@@ -1,24 +0,0 @@
-#include <jo_lowbat.hpp>
-#include <iostream>
-
-int
-jo_notify(const string batlvl) {
- string str;
-
- str = "notify-send \"Low battery: ";
- str += batlvl;
- str += "%\" \"Please plug in computer\" -u critical -t 15000";
- cout << "Notifying" << endl;
- return system(str.c_str());
-}
-
-int
-jo_speak(const string msg) {
- string str;
-
- str = "echo \"";
- str += msg;
- str += "\" | espeak";
- cout << "Speaking" << endl;
- return system(str.c_str());
-}