Skip to content

Commit c15fdae

Browse files
committed
Remove some dead code
1 parent 6cc580c commit c15fdae

2 files changed

Lines changed: 0 additions & 14 deletions

File tree

src/workerd/jsg/iterator.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -531,8 +531,6 @@ class SequenceWrapper {
531531
// TypeWrapper mixin for Sequences.
532532

533533
public:
534-
static auto constexpr MAX_STACK = 64;
535-
536534
template <typename U>
537535
static constexpr const char* getName(Sequence<U>*) {
538536
// TODO(later): It would be nicer if the name included the demangled name of U

src/workerd/jsg/value.h

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -538,16 +538,6 @@ class StringWrapper {
538538
// =======================================================================================
539539
// Optional (value or undefined) and Maybe (value or null)
540540

541-
template <typename... T>
542-
constexpr bool isUnionType(kj::OneOf<T...>*) {
543-
return true;
544-
}
545-
546-
template <typename T>
547-
constexpr bool isUnionType(T*) {
548-
return false;
549-
}
550-
551541
// TypeWrapper mixin for optionals.
552542
template <typename TypeWrapper>
553543
class OptionalWrapper {
@@ -842,7 +832,6 @@ class OneOfWrapper {
842832
template <typename TypeWrapper>
843833
class ArrayWrapper {
844834
public:
845-
static auto constexpr MAX_STACK = 64;
846835
template <typename U>
847836
static constexpr const char* getName(kj::Array<U>*) {
848837
return "Array";
@@ -917,7 +906,6 @@ class ArrayWrapper {
917906
template <typename TypeWrapper>
918907
class SetWrapper {
919908
public:
920-
static auto constexpr MAX_STACK = 64;
921909
template <typename U>
922910
static constexpr const char* getName(kj::HashSet<U>*) {
923911
return "Set";

0 commit comments

Comments
 (0)