Skip to content

Commit

Permalink
Drop the redundant methods
Browse files Browse the repository at this point in the history
  • Loading branch information
junyuan-chen committed Apr 1, 2024
1 parent 8a7c4e2 commit 9106e54
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/writestat.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ rstype(::Type{Float32}) = READSTAT_TYPE_FLOAT
rstype(::Type{<:Real}) = READSTAT_TYPE_DOUBLE
rstype(::Type{<:AbstractString}) = READSTAT_TYPE_STRING
rstype(type) = error("element type $type is not supported")
# Work around for the different eltype of MappedArray on older Julia versions
rstype(::Type{Union{T, Date}}) where T<:Real = rstype(T)
rstype(::Type{Union{T, DateTime}}) where T<:Real = rstype(T)

# Stata .dta format before version 118 does not support Unicode for string variables
const default_file_format_version = Dict{String, Int}(
Expand Down

0 comments on commit 9106e54

Please # to comment.