commit 8467373bb84fc7b0690c0e4d024d2cb298931cd9 (tree)
parent 5042a476822af59ef005df2e7ff9f994907cceb4
Author: Aiz672 <aizawey672@gmail.com>
Date: Sat, 15 May 2021 14:58:53 +0700
Remove `isIntegerNumber` and `isFloatingNumber`
Diffstat:
1 file changed, 0 insertions(+), 14 deletions(-)
diff --git a/lib/std/meta/trait.zig b/lib/std/meta/trait.zig
@@ -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,