Skip to content

Commit

Permalink
Merge pull request #273 from Geod24/clear-deprecation
Browse files Browse the repository at this point in the history
Remove deprecated aliases and functions in GenericPath
  • Loading branch information
s-ludwig authored Jan 30, 2023
2 parents b0e4d96 + 6620eda commit f9bba26
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions source/vibe/core/path.d
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,6 @@ alias InetPath = GenericPath!InetPathFormat;
version (Windows) alias NativePath = WindowsPath;
else alias NativePath = PosixPath;

deprecated("Use NativePath or one the specific path types instead.")
alias Path = NativePath;
deprecated("Use NativePath.Segment or one the specific path types instead.")
alias PathEntry = Path.Segment;

/// Provides a common interface to operate on paths of various kinds.
struct GenericPath(F) {
@safe:
Expand Down Expand Up @@ -269,12 +264,6 @@ struct GenericPath(F) {
return ret;
}

deprecated("Use the constructor instead.")
static Segment validateFilename(string name)
{
return Segment(name);
}

/// The (file/directory) name of the path segment.
@property string name() const nothrow @nogc { return m_name; }
/// The trailing separator (e.g. `'/'`) or `'\0'`.
Expand All @@ -288,9 +277,6 @@ struct GenericPath(F) {
/// Returns `true` $(I iff) the segment has a trailing path separator.
@property bool hasSeparator() const nothrow @nogc { return m_separator != '\0'; }

deprecated("Use .name instead.")
string toString() const nothrow @nogc { return m_name; }

/** Converts the segment to another path type.
The segment name will be re-validated during the conversion. The
Expand Down

0 comments on commit f9bba26

Please sign in to comment.