From 609b9eb948b5e7c27714efc0b2f87f0afb699157 Mon Sep 17 00:00:00 2001 From: Alex Dyachenko Date: Wed, 4 Jun 2014 17:20:08 -0400 Subject: [PATCH] Removed irrelevant copied code in IO ops, fixed build. --- mpir.net/mpir.net/HugeFloat.cpp | 36 +++------------------------------ 1 file changed, 3 insertions(+), 33 deletions(-) diff --git a/mpir.net/mpir.net/HugeFloat.cpp b/mpir.net/mpir.net/HugeFloat.cpp index 2382e45a..6d27f152 100644 --- a/mpir.net/mpir.net/HugeFloat.cpp +++ b/mpir.net/mpir.net/HugeFloat.cpp @@ -279,28 +279,12 @@ return result->ToString(); size_t MPTYPE::Write(Stream^ stream) { - auto writtenNumerator = Numerator->Write(stream); - if(writtenNumerator == 0) - return 0; - - auto writtenDenominator = Denominator->Write(stream); - if(writtenDenominator == 0) - return 0; - - return writtenNumerator + writtenDenominator; + throw gcnew NotImplementedException(); } size_t MPTYPE::Read(Stream^ stream) { - auto readNumerator = Numerator->Read(stream); - if(readNumerator == 0) - return 0; - - auto readDenominator = Denominator->Read(stream); - if(readDenominator == 0) - return 0; - - return readNumerator + readDenominator; + throw gcnew NotImplementedException(); } size_t MPTYPE::Write(TextWriter^ writer, int base, bool lowercase) @@ -312,21 +296,7 @@ return result->ToString(); size_t MPTYPE::Read(TextReader^ reader, int base) { - auto readNumerator = Numerator->Read(reader, base); - if(readNumerator == 0) - return 0; - - size_t readDenominator = 0; - char c = reader->Peek(); - if (c == '/') - { - reader->Read(); - readDenominator = 1 + Denominator->Read(reader, base); - if(readDenominator == 1) - return 0; - } - - return readNumerator + readDenominator; + throw gcnew NotImplementedException(); } #pragma endregion