Remove isIntegerNumber and isFloatingNumber

This commit is contained in:
Aiz672
2021-05-15 14:58:53 +07:00
committed by Veikka Tuominen
parent 5042a47682
commit 8467373bb8

View File

@@ -298,20 +298,6 @@ pub fn isNumber(comptime T: type) bool {
};
}
pub fn isIntegerNumber(comptime T: type) bool {
return switch (@typeInfo(T)) {
.Int, .ComptimeInt => true,
else => false,
};
}
pub fn isFloatingNumber(comptime T: type) bool {
return switch (@typeInfo(T)) {
.Float, .ComptimeFloat => true,
else => false,
};
}
test "std.meta.trait.isNumber" {
const NotANumber = struct {
number: u8,