diff options
| author | Aiz672 <aizawey672@gmail.com> | 2021-05-15 14:58:53 +0700 |
|---|---|---|
| committer | Veikka Tuominen <git@vexu.eu> | 2021-05-17 08:41:44 +0300 |
| commit | 8467373bb84fc7b0690c0e4d024d2cb298931cd9 (patch) | |
| tree | 4a74a5a71d4bba29e0fa4399f2a613e5d13525da /lib/std/meta | |
| parent | 5042a476822af59ef005df2e7ff9f994907cceb4 (diff) | |
| download | zig-8467373bb84fc7b0690c0e4d024d2cb298931cd9.tar.gz zig-8467373bb84fc7b0690c0e4d024d2cb298931cd9.zip | |
Remove `isIntegerNumber` and `isFloatingNumber`
Diffstat (limited to 'lib/std/meta')
| -rw-r--r-- | lib/std/meta/trait.zig | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/lib/std/meta/trait.zig b/lib/std/meta/trait.zig index 2bf2e6a0a5..b9bb6c332d 100644 --- 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, |
