Skip to content

Commit

Permalink
remove == and hash overload
Browse files Browse the repository at this point in the history
  • Loading branch information
Wynand committed Oct 6, 2021
1 parent e0a7f99 commit 339f04f
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/types/fixedtimezone.jl
Original file line number Diff line number Diff line change
Expand Up @@ -96,17 +96,7 @@ end
name(tz::FixedTimeZone) = tz.name
rename(tz::FixedTimeZone, name::AbstractString) = FixedTimeZone(name, tz.offset)

function Base.:(==)(a::FixedTimeZone, b::FixedTimeZone)
return a.name == b.name && a.offset == b.offset
end

function Base.isequal(a::FixedTimeZone, b::FixedTimeZone)
return isequal(a.name, b.name) && isequal(a.offset, b.offset)
end

function Base.hash(tz::FixedTimeZone, h::UInt)
h = hash(:timezone, h)
h = hash(tz.name, h)
h = hash(tz.offset, h)
return h
end

0 comments on commit 339f04f

Please sign in to comment.