diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-06-10 12:06:04 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-06-10 12:06:04 +0100 |
| commit | a991c734ebfedb5456cec827d5eaf2583fdbb9a1 (patch) | |
| tree | a1315b26da908ad6de4247064a00a7493482c933 /src/lib/util.cc | |
| parent | 6db935ce99e1aac8f11afb023941922265670e6b (diff) | |
Detect CPU info on OS X.
Diffstat (limited to 'src/lib/util.cc')
| -rw-r--r-- | src/lib/util.cc | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/lib/util.cc b/src/lib/util.cc index b8b60c6f6..4cf57368a 100644 --- a/src/lib/util.cc +++ b/src/lib/util.cc @@ -942,32 +942,6 @@ still_image_file (string f) return (ext == N_(".tif") || ext == N_(".tiff") || ext == N_(".jpg") || ext == N_(".jpeg") || ext == N_(".png") || ext == N_(".bmp")); } -/** @return A pair containing CPU model name and the number of processors */ -pair<string, int> -cpu_info () -{ - pair<string, int> info; - info.second = 0; - -#ifdef DVDOMATIC_POSIX - ifstream f (N_("/proc/cpuinfo")); - while (f.good ()) { - string l; - getline (f, l); - if (boost::algorithm::starts_with (l, N_("model name"))) { - string::size_type const c = l.find (':'); - if (c != string::npos) { - info.first = l.substr (c + 2); - } - } else if (boost::algorithm::starts_with (l, N_("processor"))) { - ++info.second; - } - } -#endif - - return info; -} - string audio_channel_name (int c) { |
