diff options
author | Eugene Sandulenko | 2015-01-04 22:16:50 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2015-01-04 22:16:50 +0100 |
commit | baacf0be61cf8f31a72b593d320c62393241e951 (patch) | |
tree | b3a3fe7ef531ca6ea3bb1d4616fb24a265e38984 | |
parent | 17fe53a34c442da7ccf28721179a88ed2087f7b2 (diff) | |
download | scummvm-rg350-baacf0be61cf8f31a72b593d320c62393241e951.tar.gz scummvm-rg350-baacf0be61cf8f31a72b593d320c62393241e951.tar.bz2 scummvm-rg350-baacf0be61cf8f31a72b593d320c62393241e951.zip |
SWORD25: Commend unused and unportable functions
-rw-r--r-- | engines/sword25/util/double_serialization.cpp | 6 | ||||
-rw-r--r-- | engines/sword25/util/double_serialization.h | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/engines/sword25/util/double_serialization.cpp b/engines/sword25/util/double_serialization.cpp index 0d41ddc503..a34eb0fbff 100644 --- a/engines/sword25/util/double_serialization.cpp +++ b/engines/sword25/util/double_serialization.cpp @@ -65,6 +65,10 @@ double decodeDouble(SerializedDouble value) { return ((value.signAndSignificandTwo & 0x80000000) == 0x80000000) ? -returnValue : returnValue; } +#if 0 + +// Why these are needed? + uint64 encodeDouble_64(double value) { // Split the value into its significand and exponent int exponent; @@ -135,4 +139,6 @@ double decodeDouble_Compact(CompactSerializedDouble value) { return ((value.signAndSignificandOne & 0x80000000) == 0x80000000) ? -returnValue : returnValue; } +#endif + } // End of namespace Sword25 diff --git a/engines/sword25/util/double_serialization.h b/engines/sword25/util/double_serialization.h index e90338c369..a910a66f20 100644 --- a/engines/sword25/util/double_serialization.h +++ b/engines/sword25/util/double_serialization.h @@ -56,6 +56,7 @@ SerializedDouble encodeDouble(double value); */ double decodeDouble(SerializedDouble value); +#if 0 /** * Encodes a double as a uint64 * @@ -90,6 +91,8 @@ CompactSerializedDouble encodeDouble_Compact(double value); */ double decodeDouble_Compact(CompactSerializedDouble value); +#endif + } // End of namespace Sword25 #endif |