From 5e6588090b65217e180a35bac494ede030406858 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 6 Apr 2020 21:38:10 +0200 Subject: Remove duplicate Drive::description. --- src/lib/cross_windows.cc | 22 ---------------------- 1 file changed, 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 () { -- cgit v1.2.3