From ff3308fd96ecbcfb093dbbb77ce326bbc4401674 Mon Sep 17 00:00:00 2001 From: Pharap <2933055+Pharap@users.noreply.github.com> Date: Mon, 28 May 2018 20:30:47 +0100 Subject: [PATCH] Remove superfluous constructors (#45) --- src/FixedPoints/SFixed.h | 1 - src/FixedPoints/SFixedMemberFunctions.h | 6 ------ src/FixedPoints/UFixed.h | 1 - src/FixedPoints/UFixedMemberFunctions.h | 6 ------ 4 files changed, 14 deletions(-) diff --git a/src/FixedPoints/SFixed.h b/src/FixedPoints/SFixed.h index 9576cbe..b29266e 100644 --- a/src/FixedPoints/SFixed.h +++ b/src/FixedPoints/SFixed.h @@ -64,7 +64,6 @@ public: using Base::Base; constexpr SFixed(void); - constexpr SFixed(const IntegerType & integer); constexpr SFixed(const IntegerType & integer, const FractionType & fraction); constexpr InternalType getInternal(void) const; diff --git a/src/FixedPoints/SFixedMemberFunctions.h b/src/FixedPoints/SFixedMemberFunctions.h index 82848f4..73b51d6 100644 --- a/src/FixedPoints/SFixedMemberFunctions.h +++ b/src/FixedPoints/SFixedMemberFunctions.h @@ -24,12 +24,6 @@ constexpr SFixed::SFixed(void) { } -template< unsigned Integer, unsigned Fraction > -constexpr SFixed::SFixed(const IntegerType & integer) - : Base(RawType(static_cast(integer) << FractionSize)) -{ -} - template< unsigned Integer, unsigned Fraction > constexpr SFixed::SFixed(const IntegerType & integer, const FractionType & fraction) : Base(RawType((static_cast(integer) << FractionSize) | fraction)) diff --git a/src/FixedPoints/UFixed.h b/src/FixedPoints/UFixed.h index 600eee5..b57ad58 100644 --- a/src/FixedPoints/UFixed.h +++ b/src/FixedPoints/UFixed.h @@ -64,7 +64,6 @@ public: using Base::Base; constexpr UFixed(void); - constexpr UFixed(const IntegerType & integer); constexpr UFixed(const IntegerType & integer, const FractionType & fraction); constexpr InternalType getInternal(void) const; diff --git a/src/FixedPoints/UFixedMemberFunctions.h b/src/FixedPoints/UFixedMemberFunctions.h index 0b6faae..e0709ba 100644 --- a/src/FixedPoints/UFixedMemberFunctions.h +++ b/src/FixedPoints/UFixedMemberFunctions.h @@ -24,12 +24,6 @@ constexpr UFixed::UFixed(void) { } -template< unsigned Integer, unsigned Fraction > -constexpr UFixed::UFixed(const IntegerType & integer) - : Base(RawType(static_cast(integer) << FractionSize)) -{ -} - template< unsigned Integer, unsigned Fraction > constexpr UFixed::UFixed(const IntegerType & integer, const FractionType & fraction) : Base(RawType((static_cast(integer) << FractionSize) | fraction))