From 9638a797d16eb2d9b504a4a337a20b4eee535e4c Mon Sep 17 00:00:00 2001 From: Chris Bessent Date: Thu, 29 Apr 2021 00:42:51 -0700 Subject: Sanitize download file names Also switch instance name sanitizer to MOBase version --- src/instancemanager.h | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/instancemanager.h') diff --git a/src/instancemanager.h b/src/instancemanager.h index f1781a70..7174ec3a 100644 --- a/src/instancemanager.h +++ b/src/instancemanager.h @@ -305,10 +305,6 @@ public: // std::vector globalInstancePaths() const; - // returns `name` modified so that it is a valid instance name - // - QString sanitizeInstanceName(const QString &name) const; - // sanitizes the given instance name and either // 1) returns it if there is no instance with this name // 2) tries to add " (N)" at the end until it works @@ -321,12 +317,6 @@ public: // bool instanceExists(const QString& instanceName) const; - // returns whether the given instance name would be a valid name; this does - // not check whether the instance already exists, it's basiscally just a check - // against what sanitizeInstanceName() returns - // - bool validInstanceName(const QString& instanceName) const; - // returns the absolute path of a global instance with the given name; this // does not check if the name is valid or if exists // -- cgit v1.3.1