From 9106e5402f6372e1c29d91c1227a2ab22bdf1730 Mon Sep 17 00:00:00 2001 From: Junyuan Chen Date: Sun, 31 Mar 2024 17:02:04 -0700 Subject: [PATCH] Drop the redundant methods --- src/writestat.jl | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/writestat.jl b/src/writestat.jl index c6e99de..8149d34 100644 --- a/src/writestat.jl +++ b/src/writestat.jl @@ -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}(