diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-04-06 21:38:10 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-04-06 21:38:10 +0200 |
| commit | 5e6588090b65217e180a35bac494ede030406858 (patch) | |
| tree | b6b103109f0b260b4a87cf9f636d7934a71e11cd | |
| parent | 727e3a73032e9da41770d6e6a00b63cdc6f2236d (diff) | |
Remove duplicate Drive::description.v2.15.48
| -rw-r--r-- | src/lib/cross_windows.cc | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/lib/cross_windows.cc b/src/lib/cross_windows.cc index 169435a51..130086898 100644 --- 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 () { |
