summaryrefslogtreecommitdiff
path: root/src/Utils
diff options
context:
space:
mode:
authordawidg81 <dawidgorski.m@gmail.com>2026-02-01 21:51:16 +0100
committerdawidg81 <dawidgorski.m@gmail.com>2026-02-01 21:51:16 +0100
commit2b649745227a4dde5f2d3256a0b5f8fc9927e3d8 (patch)
tree5363c06a0d152b6a4b308e78ed24e9a5047f88f2 /src/Utils
parent8d5ad6ddb271bb0b6d94d3a632035f8681b7163f (diff)
parente6a7c80d3261e8b0c3e73294c0dace4d36158c5d (diff)
Merging Utils removal
Diffstat (limited to 'src/Utils')
-rw-r--r--src/Utils/.Utils.hpp.swpbin12288 -> 0 bytes
-rw-r--r--src/Utils/Utils.hpp11
-rw-r--r--src/Utils/catch.cpp22
3 files changed, 0 insertions, 33 deletions
diff --git a/src/Utils/.Utils.hpp.swp b/src/Utils/.Utils.hpp.swp
deleted file mode 100644
index 08be885..0000000
--- a/src/Utils/.Utils.hpp.swp
+++ /dev/null
Binary files differ
diff --git a/src/Utils/Utils.hpp b/src/Utils/Utils.hpp
deleted file mode 100644
index 32c07ed..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;
-}