projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
727e3a7
)
Remove duplicate Drive::description.
v2.15.48
author
Carl Hetherington
<cth@carlh.net>
Mon, 6 Apr 2020 19:38:10 +0000
(21:38 +0200)
committer
Carl Hetherington
<cth@carlh.net>
Mon, 6 Apr 2020 19:38:10 +0000
(21:38 +0200)
src/lib/cross_windows.cc
patch
|
blob
|
history
diff --git
a/src/lib/cross_windows.cc
b/src/lib/cross_windows.cc
index 169435a510f0ee52ea906f777b311c6c6c7dad55..130086898abcd3ebb81f1932f9019ca58c8f2d21 100644
(file)
--- a/
src/lib/cross_windows.cc
+++ b/
src/lib/cross_windows.cc
@@
-536,28
+536,6
@@
get_drives ()
return drives;
}
-string
-Drive::description () const
-{
- char gb[64];
- snprintf(gb, 64, "%.1f", _size / 1000000000.0);
-
- string name;
- if (_vendor) {
- name += *_vendor;
- }
- if (_model) {
- if (name.size() > 0) {
- name += " " + *_model;
- }
- }
- if (name.size() == 0) {
- name = _("Unknown");
- }
-
- return String::compose("%1 (%2 GB) [%3]", name, gb, _internal_name);
-}
-
boost::filesystem::path
config_path ()
{