Skip to content

Commit dc9787c

Browse files
authored
[libc][NFC] Remove dead code (#73315)
1 parent 84f6e1d commit dc9787c

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

libc/src/__support/FPUtil/FloatProperties.h

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -218,24 +218,6 @@ template <> struct FloatProperties<float128> {
218218
};
219219
#endif // LIBC_COMPILER_HAS_FLOAT128
220220

221-
// Define the float type corresponding to the BitsType.
222-
template <typename BitsType> struct FloatType;
223-
224-
template <> struct FloatType<uint32_t> {
225-
static_assert(sizeof(uint32_t) == sizeof(float),
226-
"Unexpected size of 'float' type.");
227-
typedef float Type;
228-
};
229-
230-
template <> struct FloatType<uint64_t> {
231-
static_assert(sizeof(uint64_t) == sizeof(double),
232-
"Unexpected size of 'double' type.");
233-
typedef double Type;
234-
};
235-
236-
template <typename BitsType>
237-
using FloatTypeT = typename FloatType<BitsType>::Type;
238-
239221
} // namespace fputil
240222
} // namespace LIBC_NAMESPACE
241223

0 commit comments

Comments
 (0)