summaryrefslogtreecommitdiff
path: root/src/Utils
diff options
context:
space:
mode:
authordawidg81 <dawidgorski.m@gmail.com>2026-01-28 20:01:46 +0100
committerdawidg81 <dawidgorski.m@gmail.com>2026-01-28 20:01:46 +0100
commitb0edb4219ea4df381d0235aa34b74799334aa0b2 (patch)
tree9607358416596125857b25394a267eb562e6fcc5 /src/Utils
parent6ce59baf37e6f009fd6854b701f0e3795fa38dc8 (diff)
finished merging code and simplifying file structure
Diffstat (limited to 'src/Utils')
-rw-r--r--src/Utils/Utils.hpp11
-rw-r--r--src/Utils/catch.cpp22
2 files changed, 0 insertions, 33 deletions
diff --git a/src/Utils/Utils.hpp b/src/Utils/Utils.hpp
deleted file mode 100644
index e977db4..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
diff --git a/src/Utils/catch.cpp b/src/Utils/catch.cpp
deleted file mode 100644
index 37ebefe..0000000
--- a/src/Utils/catch.cpp
+++ /dev/null
@@ -1,22 +0,0 @@
-#include "Utils.hpp"
-
-#include <iostream>
-#include <ostream>
-
-int Utils::catchInputInt(int* input){
- std::cin >> input;
-
- if (std::cin.fail()) {
- std::cout << "error: Input failed" << std::endl;
- return 1;
- }
-
- return 0;
-}
-
-int Utils::catchReturn(int renum){
- if (renum != 0) {
- std::cout << "Received error signal, sending further" << std::endl;
- }
- return 0;
-}