From 3806bb74674f305679efdaa2889d155531bc3643 Mon Sep 17 00:00:00 2001 From: dawidg81 Date: Mon, 26 Jan 2026 17:24:50 +0100 Subject: dir rename --- src/utils/Utils.hpp | 11 ----------- src/utils/catchInputInt.cpp | 15 --------------- src/utils/catchReturn.cpp | 11 ----------- 3 files changed, 37 deletions(-) delete mode 100644 src/utils/Utils.hpp delete mode 100644 src/utils/catchInputInt.cpp delete mode 100644 src/utils/catchReturn.cpp (limited to 'src/utils') 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 - -#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 -#include - -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 -#include - -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 -- cgit v1.2.3