From 79ae5e7b912046dae8a4207f99c25b245cd447a4 Mon Sep 17 00:00:00 2001 From: grisenti Date: Fri, 1 Sep 2023 23:03:35 +0200 Subject: [PATCH] HPL1: Remove unused function to silence warning --- .../engine/libraries/newton/core/dgGoogol.cpp | 26 +++---------------- 1 file changed, 4 insertions(+), 22 deletions(-) diff --git a/engines/hpl1/engine/libraries/newton/core/dgGoogol.cpp b/engines/hpl1/engine/libraries/newton/core/dgGoogol.cpp index 6e7fa05dfb3..3f216e590de 100644 --- a/engines/hpl1/engine/libraries/newton/core/dgGoogol.cpp +++ b/engines/hpl1/engine/libraries/newton/core/dgGoogol.cpp @@ -19,8 +19,9 @@ * 3. This notice may not be removed or altered from any source distribution. */ -#include "dgStdafx.h" #include "dgGoogol.h" +#include "dgStdafx.h" +#include "hpl1/debug.h" dgGoogol::dgGoogol(void) : m_sign(0), m_exponent(0) { @@ -338,27 +339,8 @@ dgGoogol dgGoogol::operator-=(const dgGoogol &A) { } dgGoogol dgGoogol::Floor() const { - if (m_exponent < 1) { - return dgGoogol(0.0); - } - dgInt32 bits = m_exponent + 2; - dgInt32 start = 0; - while (bits >= 64) { - bits -= 64; - start++; - } - - dgGoogol tmp(*this); - for (dgInt32 i = DG_GOOGOL_SIZE - 1; i > start; i--) { - tmp.m_mantissa[i] = 0; - } - dgUnsigned64 mask = (-1LL) << (64 - bits); - tmp.m_mantissa[start] &= mask; - if (m_sign) { - NEWTON_ASSERT(0); - } - - return tmp; + // removed to silence warning + HPL1_UNIMPLEMENTED(dgGoogol::Floor); } #ifdef _DEBUG