diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2021-05-03 15:08:34 +0200 |
|---|---|---|
| committer | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2021-05-03 15:08:34 +0200 |
| commit | 59b3c472ca1ea4e56728eb81c3c8b595a4b1bcdd (patch) | |
| tree | ce9948ba6b2a1dc888006066a11c65c62bb0ebe0 /core/compress/common.odin | |
| parent | 357f66fceeb6cbc3b72281300dbe7af4e2b68715 (diff) | |
Convert `core:compress` and `core:image` error checks to new union comparison.
No more need for `is_kind(err, Error_Value)`, just test err == Error_Value.
Diffstat (limited to 'core/compress/common.odin')
| -rw-r--r-- | core/compress/common.odin | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/core/compress/common.odin b/core/compress/common.odin index ffdc2d208..de1894f61 100644 --- a/core/compress/common.odin +++ b/core/compress/common.odin @@ -3,12 +3,6 @@ package compress import "core:io" import "core:image" -// Error helper, e.g. is_kind(err, General_Error.OK); -is_kind :: proc(u: $U, x: $V) -> bool { - v, ok := u.(V); - return ok && v == x; -} - Error :: union { General_Error, Deflate_Error, |