Skip to content

Commit

Permalink
[NFC] Remove unused isException type methods
Browse files Browse the repository at this point in the history
  • Loading branch information
tlively committed Aug 2, 2024
1 parent 2a7c093 commit 7a71eb0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions src/wasm-type.h
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ class Type {
bool isSignature() const;
bool isStruct() const;
bool isArray() const;
bool isException() const;
bool isString() const;
bool isDefaultable() const;

Expand Down Expand Up @@ -377,7 +376,6 @@ class HeapType {
bool isContinuation() const;
bool isStruct() const;
bool isArray() const;
bool isException() const;
bool isString() const;
bool isBottom() const;
bool isOpen() const;
Expand Down
6 changes: 0 additions & 6 deletions src/wasm/wasm-type.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 7a71eb0

Please sign in to comment.