Removing ConnectedDevice::Refresh altogether

This commit is contained in:
Lukas Prediger 2021-05-30 16:57:50 +03:00 committed by John Maguire
parent 639b918557
commit 95799a911d
2 changed files with 0 additions and 4 deletions

View File

@ -46,9 +46,6 @@ class ConnectedDevice : public QObject,
virtual void Init() = 0;
virtual void ConnectAsync();
// For some devices (e.g. CD devices) we don't have callbacks to be notified
// when something change: we can call this method to refresh device's state
virtual void Refresh() {}
virtual TranscodeMode GetTranscodeMode() const;
virtual Song::FileType GetTranscodeFormat() const;

View File

@ -191,7 +191,6 @@ QVariant DeviceManager::data(const QModelIndex& idx, int role) const {
if (info->size_)
text = text + QString(" (%1)").arg(Utilities::PrettySize(info->size_));
if (info->device_.get()) info->device_->Refresh();
return text;
}