Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(535)

Unified Diff: webrtc/base/pathutils.h

Issue 2745073004: Delete unused Pathname methods. (Closed)
Patch Set: Add back Pathname::clear, it's used in the windows code. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webrtc/base/pathutils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/pathutils.h
diff --git a/webrtc/base/pathutils.h b/webrtc/base/pathutils.h
index 0aebcef1fb1e286465afa79819191aa52e28b42c..ff0906938b2e4798bd9cf8bdc4571c099ad4e38a 100644
--- a/webrtc/base/pathutils.h
+++ b/webrtc/base/pathutils.h
@@ -52,10 +52,6 @@ public:
Pathname& operator=(const Pathname&);
Pathname& operator=(Pathname&&);
- // Set's the default folder delimiter for this Pathname
- char folder_delimiter() const { return folder_delimiter_; }
- void SetFolderDelimiter(char delimiter);
-
// Normalize changes all folder delimiters to folder_delimiter()
void Normalize();
@@ -73,34 +69,20 @@ public:
void SetPathname(const std::string& pathname);
void SetPathname(const std::string& folder, const std::string& filename);
- // Append pathname to the current folder (if any). Any existing filename
- // will be discarded.
- void AppendPathname(const std::string& pathname);
-
std::string folder() const;
- std::string folder_name() const;
std::string parent_folder() const;
// SetFolder and AppendFolder will append a folder delimiter, if needed.
void SetFolder(const std::string& folder);
void AppendFolder(const std::string& folder);
- std::string basename() const;
bool SetBasename(const std::string& basename);
- std::string extension() const;
// SetExtension will prefix a period, if needed.
bool SetExtension(const std::string& extension);
std::string filename() const;
bool SetFilename(const std::string& filename);
-#if defined(WEBRTC_WIN)
- bool GetDrive(char* drive, uint32_t bytes) const;
- static bool GetDrive(char* drive,
- uint32_t bytes,
- const std::string& pathname);
-#endif
-
private:
std::string folder_, basename_, extension_;
char folder_delimiter_;
« no previous file with comments | « no previous file | webrtc/base/pathutils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698