diff options
author | bptato <nincsnevem662@gmail.com> | 2023-01-05 03:10:30 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-01-05 03:10:30 +0100 |
commit | f43b306fae89a6fde2aef9bcde2511dafd8519c7 (patch) | |
tree | 823664773459e5c50e6606f4b0240e7010bd189d /src/js | |
parent | 1666ea6a0ef0d09ae5054fbecb8bd1805e651425 (diff) | |
download | chawan-f43b306fae89a6fde2aef9bcde2511dafd8519c7.tar.gz |
javascript: remove unused pointer case from getTypePtr
I probably removed the last call of getTypePtr with a pointer long ago.
Diffstat (limited to 'src/js')
-rw-r--r-- | src/js/javascript.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/javascript.nim b/src/js/javascript.nim index 1745235e..f13305c7 100644 --- a/src/js/javascript.nim +++ b/src/js/javascript.nim @@ -727,7 +727,7 @@ proc toJS(ctx: JSContext, s: seq): JSValue = return a proc getTypePtr[T](x: T): pointer = - when T is RootRef or T is pointer: + when T is RootRef: # I'm so sorry. # (This dereferences the object's first member, m_type. Probably.) return cast[ptr pointer](x)[] |