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

Unified Diff: webrtc/base/pathutils.cc

Issue 2572703002: Delete method Pathname::url and base/urlencode* (Closed)
Patch Set: Created 4 years 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 | « webrtc/base/pathutils.h ('k') | webrtc/base/pathutils_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/pathutils.cc
diff --git a/webrtc/base/pathutils.cc b/webrtc/base/pathutils.cc
index c4a2c30dc832d76aa9cf1ba3ea30ede43643f61c..80df0ef9e8cd20b4cb41c0fa5ee646215b674fcb 100644
--- a/webrtc/base/pathutils.cc
+++ b/webrtc/base/pathutils.cc
@@ -20,7 +20,6 @@
#include "webrtc/base/logging.h"
#include "webrtc/base/pathutils.h"
#include "webrtc/base/stringutils.h"
-#include "webrtc/base/urlencode.h"
namespace rtc {
@@ -106,19 +105,6 @@ std::string Pathname::pathname() const {
return pathname;
}
-std::string Pathname::url() const {
- std::string s = "file:///";
- for (size_t i=0; i<folder_.length(); ++i) {
- if (IsFolderDelimiter(folder_[i]))
- s += '/';
- else
- s += folder_[i];
- }
- s += basename_;
- s += extension_;
- return UrlEncodeStringForOnlyUnsafeChars(s);
-}
-
void Pathname::SetPathname(const std::string& pathname) {
std::string::size_type pos = pathname.find_last_of(FOLDER_DELIMS);
if (pos != std::string::npos) {
« no previous file with comments | « webrtc/base/pathutils.h ('k') | webrtc/base/pathutils_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698