mac: Make GetOSVersion() private to a cc file.

Everything calls GetOSVersionName() instead, so no need to expose that.
Since it uses deprecated functions, this will make it easier to rewrite
it in a future change.

BUG=webrtc:6027
NOTRY=true

Review-Url: https://codereview.webrtc.org/2117823002
Cr-Commit-Position: refs/heads/master@{#13399}
This commit is contained in:
thakis 2016-07-06 10:46:41 -07:00 committed by Commit bot
parent 63fb95a68d
commit 0cf208aa28
2 changed files with 1 additions and 2 deletions

View File

@ -83,7 +83,7 @@ static bool GetGestalt(OSType ostype, int* value) {
return false;
}
bool GetOSVersion(int* major, int* minor, int* bugfix) {
static bool GetOSVersion(int* major, int* minor, int* bugfix) {
ASSERT(major && minor && bugfix);
if (!GetGestalt(gestaltSystemVersion, major)) {
return false;

View File

@ -43,7 +43,6 @@ enum MacOSVersionName {
kMacOSNewer, // 10.10+
};
bool GetOSVersion(int* major, int* minor, int* bugfix);
MacOSVersionName GetOSVersionName();
bool GetQuickTimeVersion(std::string* version);