Delete ApplicationName and OrganizationName.
Deleted FilesystemInterface methods: GetOrganizationName SetOrganizationName GetApplicationName SetApplicationName Unused since cl https://codereview.webrtc.org/2533213005. BUG=webrtc:6424 Review-Url: https://codereview.webrtc.org/2927983003 Cr-Commit-Position: refs/heads/master@{#18554}
This commit is contained in:
parent
b008b45f1e
commit
29f0d453aa
@ -118,27 +118,6 @@ class FilesystemInterface {
|
||||
// Determines a timestamp associated with the file indicated by path.
|
||||
virtual bool GetFileTime(const Pathname& path, FileTimeType which,
|
||||
time_t* time) = 0;
|
||||
|
||||
// Note: These might go into some shared config section later, but they're
|
||||
// used by some methods in this interface, so we're leaving them here for now.
|
||||
void SetOrganizationName(const std::string& organization) {
|
||||
organization_name_ = organization;
|
||||
}
|
||||
void GetOrganizationName(std::string* organization) {
|
||||
RTC_DCHECK(organization);
|
||||
*organization = organization_name_;
|
||||
}
|
||||
void SetApplicationName(const std::string& application) {
|
||||
application_name_ = application;
|
||||
}
|
||||
void GetApplicationName(std::string* application) {
|
||||
RTC_DCHECK(application);
|
||||
*application = application_name_;
|
||||
}
|
||||
|
||||
protected:
|
||||
std::string organization_name_;
|
||||
std::string application_name_;
|
||||
};
|
||||
|
||||
class Filesystem {
|
||||
@ -202,22 +181,6 @@ class Filesystem {
|
||||
return EnsureDefaultFilesystem()->GetFileTime(path, which, time);
|
||||
}
|
||||
|
||||
static void SetOrganizationName(const std::string& organization) {
|
||||
EnsureDefaultFilesystem()->SetOrganizationName(organization);
|
||||
}
|
||||
|
||||
static void GetOrganizationName(std::string* organization) {
|
||||
EnsureDefaultFilesystem()->GetOrganizationName(organization);
|
||||
}
|
||||
|
||||
static void SetApplicationName(const std::string& application) {
|
||||
EnsureDefaultFilesystem()->SetApplicationName(application);
|
||||
}
|
||||
|
||||
static void GetApplicationName(std::string* application) {
|
||||
EnsureDefaultFilesystem()->GetApplicationName(application);
|
||||
}
|
||||
|
||||
private:
|
||||
static FilesystemInterface* default_filesystem_;
|
||||
|
||||
|
||||
@ -93,9 +93,6 @@ int main(int argc, char** argv) {
|
||||
#endif
|
||||
#endif // WEBRTC_WIN
|
||||
|
||||
rtc::Filesystem::SetOrganizationName("google");
|
||||
rtc::Filesystem::SetApplicationName("unittest");
|
||||
|
||||
// By default, log timestamps. Allow overrides by used of a --log flag.
|
||||
rtc::LogMessage::LogTimestamps();
|
||||
if (*FLAG_log != '\0') {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user