summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/time/time_zone_manager.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/time/time_zone_manager.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/core/hle/service/time/time_zone_manager.cpp b/src/core/hle/service/time/time_zone_manager.cpp
index c06ca538a..4db6d7ad3 100644
--- a/src/core/hle/service/time/time_zone_manager.cpp
+++ b/src/core/hle/service/time/time_zone_manager.cpp
@@ -4,8 +4,6 @@
#include <climits>
-#include <boost/safe_numerics/safe_integer.hpp>
-
#include "common/assert.h"
#include "common/logging/log.h"
#include "core/file_sys/content_archive.h"
@@ -77,13 +75,7 @@ struct CalendarTimeInternal {
template <typename TResult, typename TOperand>
static bool SafeAdd(TResult& result, TOperand op) {
- const boost::safe_numerics::safe<TResult> safe_result{result};
- const boost::safe_numerics::safe<TOperand> safe_op{op};
- try {
- result = safe_result + safe_op;
- } catch (const std::exception&) {
- return {}; // Failed with undefined behavior
- }
+ result = result + op;
return true;
}