Skip to content

Commit 3c2198b

Browse files
committed
Remove binaryplatforms.jl changes, implementing convert(::Type{Platform}, ::AbstractPlatform)
1 parent fe94768 commit 3c2198b

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

base/binaryplatforms.jl

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,6 @@ function Platform(arch::String, os::String;
119119
tags = Dict{String,Any}(String(tag)::String=>tagvalue(value) for (tag, value) in kwargs)
120120
return Platform(arch, os, tags; validate_strict, compare_strategies)
121121
end
122-
function Platform(p::AbstractPlatform; kwargs...)
123-
_tags = copy(tags(p))
124-
delete!(_tags, "arch")
125-
delete!(_tags, "os")
126-
return Platform(String(arch(p)), String(os(p)), _tags; kwargs...)
127-
end
128-
Base.convert(::Type{Platform}, p::AbstractPlatform) = Platform(p)
129122

130123
tagvalue(v::Union{String,VersionNumber,Nothing}) = v
131124
tagvalue(v::Symbol) = String(v)
@@ -441,7 +434,7 @@ const platform_names = Dict(
441434
Get the "platform name" of the given platform, returning e.g. "Linux" or "Windows".
442435
"""
443436
function platform_name(p::AbstractPlatform)
444-
return get(platform_names, os(p), os(p))
437+
return platform_names[os(p)]
445438
end
446439

447440
function VNorNothing(d::Dict, key)

0 commit comments

Comments
 (0)