From 687bc3e27bbd8b6a2c399deeab08af05b5f1524f Mon Sep 17 00:00:00 2001 From: nisse Date: Tue, 13 Jun 2017 01:06:07 -0700 Subject: [PATCH] Delete unused method Win32Filesystem::GetAppPathname. Unused since cl https://codereview.webrtc.org/2872283002. BUG=webrtc:6424 Review-Url: https://codereview.webrtc.org/2934483002 Cr-Commit-Position: refs/heads/master@{#18552} --- webrtc/base/win32filesystem.cc | 8 -------- webrtc/base/win32filesystem.h | 4 ---- 2 files changed, 12 deletions(-) diff --git a/webrtc/base/win32filesystem.cc b/webrtc/base/win32filesystem.cc index 9a075c1e9e..faca8e9c08 100644 --- a/webrtc/base/win32filesystem.cc +++ b/webrtc/base/win32filesystem.cc @@ -174,12 +174,4 @@ bool Win32Filesystem::GetFileTime(const Pathname& path, FileTimeType which, return true; } -bool Win32Filesystem::GetAppPathname(Pathname* path) { - TCHAR buffer[MAX_PATH + 1]; - if (0 == ::GetModuleFileName(nullptr, buffer, arraysize(buffer))) - return false; - path->SetPathname(ToUtf8(buffer)); - return true; -} - } // namespace rtc diff --git a/webrtc/base/win32filesystem.h b/webrtc/base/win32filesystem.h index 7ddbbd7e6c..1a52d62fe6 100644 --- a/webrtc/base/win32filesystem.h +++ b/webrtc/base/win32filesystem.h @@ -60,10 +60,6 @@ class Win32Filesystem : public FilesystemInterface { bool GetTemporaryFolder(Pathname& path, bool create, const std::string* append) override; - - private: - // Returns the path to the running application. - bool GetAppPathname(Pathname* path); }; } // namespace rtc