Skip to content

Commit

Permalink
Remove unused joinpathh5 function (#452)
Browse files Browse the repository at this point in the history
  • Loading branch information
musm authored Nov 25, 2017
1 parent 96ccd92 commit 29ac03e
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/HDF5.jl
Original file line number Diff line number Diff line change
Expand Up @@ -848,15 +848,6 @@ getindex(dset::HDF5Dataset, name::String) = a_open(dset, name)
getindex(x::HDF5Attributes, name::String) = a_open(x.parent, name)

# Path manipulation
function joinpathh5(a::String, b::String)
isempty(a) && return b
isempty(b) && return a
endswith(a, '/') && beginswith(b, '/') && return a * b[2:end]
(endswith(a, '/') || beginswith(b, '/')) && return a * b
return a*"/"*b
end
joinpathh5(a::String, b::String, c::String) = joinpathh5(joinpathh5(a, b), c)

function split1(path::String)
off = search(path, '/')
if off == 0
Expand Down

0 comments on commit 29ac03e

Please sign in to comment.