Skip to content

Commit 075b0ae

Browse files
authored
Merge pull request #5594 from cloudflare/jasnell/remove-dead-code
2 parents 35ab20a + c15fdae commit 075b0ae

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

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
@@ -537,16 +537,6 @@ class StringWrapper {
537537
// =======================================================================================
538538
// Optional (value or undefined) and Maybe (value or null)
539539

540-
template <typename... T>
541-
constexpr bool isUnionType(kj::OneOf<T...>*) {
542-
return true;
543-
}
544-
545-
template <typename T>
546-
constexpr bool isUnionType(T*) {
547-
return false;
548-
}
549-
550540
// TypeWrapper mixin for optionals.
551541
template <typename TypeWrapper>
552542
class OptionalWrapper {
@@ -841,7 +831,6 @@ class OneOfWrapper {
841831
template <typename TypeWrapper>
842832
class ArrayWrapper {
843833
public:
844-
static auto constexpr MAX_STACK = 64;
845834
template <typename U>
846835
static constexpr const char* getName(kj::Array<U>*) {
847836
return "Array";
@@ -916,7 +905,6 @@ class ArrayWrapper {
916905
template <typename TypeWrapper>
917906
class SetWrapper {
918907
public:
919-
static auto constexpr MAX_STACK = 64;
920908
template <typename U>
921909
static constexpr const char* getName(kj::HashSet<U>*) {
922910
return "Set";

0 commit comments

Comments
 (0)