Skip to content

Commit 9e6d6d7

Browse files
authored
Don't overload sizeof, that is not reasonable
1 parent c0def20 commit 9e6d6d7

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/corefunctionality.jl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@ Base.String(s::InternedString) = s.value
3939
Base.endof(s::InternedString) = endof(s.value)
4040
Base.next(s::InternedString, i::Int) = next(s.value, i)
4141

42-
Base.sizeof(s::InternedString) = sizeof(s.value)
43-
44-
4542
Base.:(==)(s1::InternedString, s2::InternedString) = s1.value === s2.value # InternedStrings have refernitally equal values
4643
Base.:(==)(s1::String, s2::InternedString) = s1 == s2.value # use faster than the AbstractString equality check
4744
Base.:(==)(s1::InternedString, s2::String) = s2 == s1

0 commit comments

Comments
 (0)