diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-06-13 21:28:36 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-06-13 21:28:36 +0100 |
| commit | e36c24bf1522593976de7de2c4d79c76f0ba36a8 (patch) | |
| tree | b342028831b620944ebc5a45946d82c1f69f64d0 /src/lib/util.cc | |
| parent | 43b4e55710271c797b5d251c891047ed4da20e10 (diff) | |
| parent | a991c734ebfedb5456cec827d5eaf2583fdbb9a1 (diff) | |
Merge branch 'master' of ssh://houllier/home/carl/git/dvdomatic
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) { |
