Skip to content

Commit

Permalink
Remove deprecated *ResolveHome functions
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamer committed May 6, 2023
1 parent ce75481 commit 897d452
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
7 changes: 0 additions & 7 deletions include/cross.h
Expand Up @@ -112,17 +112,10 @@ std_fs::path get_platform_config_dir();

std_fs::path resolve_home(const std::string &str) noexcept;

[[deprecated]]
std::string CROSS_ResolveHome(const std::string &str);

class Cross {
public:
static void GetPlatformConfigName(std::string& in);
static void CreatePlatformConfigDir(std::string& in);

[[deprecated]]
static void ResolveHomedir(std::string & temp_line);

static bool IsPathAbsolute(std::string const& in);
};

Expand Down
10 changes: 0 additions & 10 deletions src/misc/cross.cpp
Expand Up @@ -208,11 +208,6 @@ void Cross::GetPlatformConfigName(std::string &in)
in = GetConfigName();
}

void Cross::ResolveHomedir(std::string &in)
{
in = CROSS_ResolveHome(in);
}

void Cross::CreatePlatformConfigDir(std::string &in)
{
#ifdef WIN32
Expand All @@ -231,11 +226,6 @@ void Cross::CreatePlatformConfigDir(std::string &in)
}
}

std::string CROSS_ResolveHome(const std::string &str)
{
return resolve_home(str).string();
}

std_fs::path resolve_home(const std::string &str) noexcept
{
if (!str.size() || str[0] != '~') // No ~
Expand Down

0 comments on commit 897d452

Please sign in to comment.