Skip to content

Commit ff3308f

Browse files
authored
Remove superfluous constructors (#45)
1 parent 0d064ef commit ff3308f

File tree

4 files changed

+0
-14
lines changed

4 files changed

+0
-14
lines changed

src/FixedPoints/SFixed.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ class SFixed : FIXED_POINTS_DETAILS::SFixedBase< Integer, Fraction >
6464
using Base::Base;
6565

6666
constexpr SFixed(void);
67-
constexpr SFixed(const IntegerType & integer);
6867
constexpr SFixed(const IntegerType & integer, const FractionType & fraction);
6968

7069
constexpr InternalType getInternal(void) const;

src/FixedPoints/SFixedMemberFunctions.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,6 @@ constexpr SFixed<Integer, Fraction>::SFixed(void)
2424
{
2525
}
2626

27-
template< unsigned Integer, unsigned Fraction >
28-
constexpr SFixed<Integer, Fraction>::SFixed(const IntegerType & integer)
29-
: Base(RawType(static_cast<InternalType>(integer) << FractionSize))
30-
{
31-
}
32-
3327
template< unsigned Integer, unsigned Fraction >
3428
constexpr SFixed<Integer, Fraction>::SFixed(const IntegerType & integer, const FractionType & fraction)
3529
: Base(RawType((static_cast<InternalType>(integer) << FractionSize) | fraction))

src/FixedPoints/UFixed.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ class UFixed : FIXED_POINTS_DETAILS::UFixedBase< Integer, Fraction >
6464
using Base::Base;
6565

6666
constexpr UFixed(void);
67-
constexpr UFixed(const IntegerType & integer);
6867
constexpr UFixed(const IntegerType & integer, const FractionType & fraction);
6968

7069
constexpr InternalType getInternal(void) const;

src/FixedPoints/UFixedMemberFunctions.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,6 @@ constexpr UFixed<Integer, Fraction>::UFixed(void)
2424
{
2525
}
2626

27-
template< unsigned Integer, unsigned Fraction >
28-
constexpr UFixed<Integer, Fraction>::UFixed(const IntegerType & integer)
29-
: Base(RawType(static_cast<InternalType>(integer) << FractionSize))
30-
{
31-
}
32-
3327
template< unsigned Integer, unsigned Fraction >
3428
constexpr UFixed<Integer, Fraction>::UFixed(const IntegerType & integer, const FractionType & fraction)
3529
: Base(RawType((static_cast<InternalType>(integer) << FractionSize) | fraction))

0 commit comments

Comments
 (0)