From b0edb4219ea4df381d0235aa34b74799334aa0b2 Mon Sep 17 00:00:00 2001 From: dawidg81 Date: Wed, 28 Jan 2026 20:01:46 +0100 Subject: finished merging code and simplifying file structure --- src/Utils/Utils.hpp | 11 ----------- src/Utils/catch.cpp | 22 ---------------------- 2 files changed, 33 deletions(-) delete mode 100644 src/Utils/Utils.hpp delete mode 100644 src/Utils/catch.cpp (limited to 'src/Utils') 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 - -#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 -#include - -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; -} -- cgit v1.2.3