Skip to content

Commit 8268a3b

Browse files
committed
[NFC] Remove unused isException type methods
1 parent 8d2c9ff commit 8268a3b

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

src/wasm-type.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,6 @@ class Type {
170170
bool isSignature() const;
171171
bool isStruct() const;
172172
bool isArray() const;
173-
bool isException() const;
174173
bool isString() const;
175174
bool isDefaultable() const;
176175

@@ -377,7 +376,6 @@ class HeapType {
377376
bool isContinuation() const;
378377
bool isStruct() const;
379378
bool isArray() const;
380-
bool isException() const;
381379
bool isString() const;
382380
bool isBottom() const;
383381
bool isOpen() const;

src/wasm/wasm-type.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -814,10 +814,6 @@ bool Type::isStruct() const { return isRef() && getHeapType().isStruct(); }
814814

815815
bool Type::isArray() const { return isRef() && getHeapType().isArray(); }
816816

817-
bool Type::isException() const {
818-
return isRef() && getHeapType().isException();
819-
}
820-
821817
bool Type::isString() const { return isRef() && getHeapType().isString(); }
822818

823819
bool Type::isDefaultable() const {
@@ -1148,8 +1144,6 @@ bool HeapType::isArray() const {
11481144
}
11491145
}
11501146

1151-
bool HeapType::isException() const { return *this == HeapType::exn; }
1152-
11531147
bool HeapType::isString() const { return *this == HeapType::string; }
11541148

11551149
bool HeapType::isBottom() const {

0 commit comments

Comments
 (0)