diff options
author | Thomas Lively <tlively@google.com> | 2024-08-05 15:30:16 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-05 12:30:16 -0700 |
commit | d9c44afdca7b2e2da29e4202f0d0a06fb0add115 (patch) | |
tree | 112ad5dfb3377e476082fd94ada8847472bd3d88 | |
parent | 5573cdb80e2ac9aed4cd5f20c3e41dc3138ef426 (diff) | |
download | binaryen-d9c44afdca7b2e2da29e4202f0d0a06fb0add115.tar.gz binaryen-d9c44afdca7b2e2da29e4202f0d0a06fb0add115.tar.bz2 binaryen-d9c44afdca7b2e2da29e4202f0d0a06fb0add115.zip |
[NFC] Remove unused `isException` type methods (#6802)
-rw-r--r-- | src/wasm-type.h | 2 | ||||
-rw-r--r-- | src/wasm/wasm-type.cpp | 6 |
2 files changed, 0 insertions, 8 deletions
diff --git a/src/wasm-type.h b/src/wasm-type.h index b3640ff41..49179b1a6 100644 --- a/src/wasm-type.h +++ b/src/wasm-type.h @@ -170,7 +170,6 @@ public: bool isSignature() const; bool isStruct() const; bool isArray() const; - bool isException() const; bool isString() const; bool isDefaultable() const; @@ -377,7 +376,6 @@ public: bool isContinuation() const; bool isStruct() const; bool isArray() const; - bool isException() const; bool isString() const; bool isBottom() const; bool isOpen() const; diff --git a/src/wasm/wasm-type.cpp b/src/wasm/wasm-type.cpp index bfab4b955..339eeb0b9 100644 --- a/src/wasm/wasm-type.cpp +++ b/src/wasm/wasm-type.cpp @@ -814,10 +814,6 @@ bool Type::isStruct() const { return isRef() && getHeapType().isStruct(); } bool Type::isArray() const { return isRef() && getHeapType().isArray(); } -bool Type::isException() const { - return isRef() && getHeapType().isException(); -} - bool Type::isString() const { return isRef() && getHeapType().isString(); } bool Type::isDefaultable() const { @@ -1148,8 +1144,6 @@ bool HeapType::isArray() const { } } -bool HeapType::isException() const { return *this == HeapType::exn; } - bool HeapType::isString() const { return *this == HeapType::string; } bool HeapType::isBottom() const { |