summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authordawidg81 <dawidgorski.m@gmail.com>2026-01-26 17:24:50 +0100
committerdawidg81 <dawidgorski.m@gmail.com>2026-01-26 17:24:50 +0100
commit3806bb74674f305679efdaa2889d155531bc3643 (patch)
treedcced6c118fb6ed61824bb0bcd24d1ae6aed258c /src/utils
parentb492bfb0d4cafe69edf69f196911f1b0e64c43df (diff)
dir rename
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/Utils.hpp11
-rw-r--r--src/utils/catchInputInt.cpp15
-rw-r--r--src/utils/catchReturn.cpp11
3 files changed, 0 insertions, 37 deletions
diff --git a/src/utils/Utils.hpp b/src/utils/Utils.hpp
deleted file mode 100644
index 7df9e3d..0000000
--- a/src/utils/Utils.hpp
+++ /dev/null
@@ -1,11 +0,0 @@
-#include <string>
-
-#ifndef UTILS_HPP
-
-class Utils{
- public:
- int catchInputInt(int input);
- int catchReturn(int renum);
-};
-
-#endif \ No newline at end of file
diff --git a/src/utils/catchInputInt.cpp b/src/utils/catchInputInt.cpp
deleted file mode 100644
index 0dc8fc9..0000000
--- a/src/utils/catchInputInt.cpp
+++ /dev/null
@@ -1,15 +0,0 @@
-#include "Utils.hpp"
-
-#include <cstdio>
-#include <iostream>
-
-int Utils::catchInputInt(int input){
- std::cin >> input;
-
- if (std::cin.fail()) {
- std::cout << "error: Input failed" << std::endl;
- return 1;
- }
-
- return 0;
-} \ No newline at end of file
diff --git a/src/utils/catchReturn.cpp b/src/utils/catchReturn.cpp
deleted file mode 100644
index c3d6722..0000000
--- a/src/utils/catchReturn.cpp
+++ /dev/null
@@ -1,11 +0,0 @@
-#include "Utils.hpp"
-
-#include <iostream>
-#include <ostream>
-
-int Utils::catchReturn(int renum){
- if (renum != 0) {
- std::cout << "Received error signal, sending further" << std::endl;
- }
- return 0;
-} \ No newline at end of file