From 7100b64e45ed1d73682a0d35bac93c20e1922e2a Mon Sep 17 00:00:00 2001 From: Thomas Fussell Date: Wed, 4 Jan 2017 21:15:29 -0500 Subject: [PATCH] remove long long overloads for cell::value, let's see if this breaks anything --- source/cell/cell.cpp | 25 ------------------------- source/cell/tests/test_cell.hpp | 11 ----------- 2 files changed, 36 deletions(-) diff --git a/source/cell/cell.cpp b/source/cell/cell.cpp index 28644780..ff220b8b 100644 --- a/source/cell/cell.cpp +++ b/source/cell/cell.cpp @@ -266,31 +266,6 @@ XLNT_API void cell::value(std::uint64_t i) d_->type_ = type::numeric; } -#ifdef _MSC_VER -template <> -XLNT_API void cell::value(unsigned long i) -{ - d_->value_numeric_ = static_cast(i); - d_->type_ = type::numeric; -} -#endif - -#ifdef __linux -template <> -XLNT_API void cell::value(long long i) -{ - d_->value_numeric_ = static_cast(i); - d_->type_ = type::numeric; -} - -template <> -XLNT_API void cell::value(unsigned long long i) -{ - d_->value_numeric_ = static_cast(i); - d_->type_ = type::numeric; -} -#endif - template <> XLNT_API void cell::value(float f) { diff --git a/source/cell/tests/test_cell.hpp b/source/cell/tests/test_cell.hpp index b217116a..0e4a6102 100644 --- a/source/cell/tests/test_cell.hpp +++ b/source/cell/tests/test_cell.hpp @@ -560,17 +560,6 @@ public: cell.value(static_cast(3)); TS_ASSERT_EQUALS(cell.value(), 3); -#ifdef __linux - cell.value(static_cast(3)); - TS_ASSERT_EQUALS(cell.value(), 3); - - cell.value(static_cast(3)); - TS_ASSERT_EQUALS(cell.value(), 3); -#endif - - cell.value(static_cast(3)); - TS_ASSERT_EQUALS(cell.value(), 3); - cell.value(static_cast(3.14)); TS_ASSERT_DELTA(cell.value(), 3.14, 0.001);