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