Skip to content

Commit

Permalink
Overview: clean up includes and assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
ronso0 committed Jan 9, 2025
1 parent 5da2b6d commit 17243c3
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 19 deletions.
1 change: 0 additions & 1 deletion src/library/dao/trackdao.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include "library/dao/libraryhashdao.h"
#include "library/dao/playlistdao.h"
#include "library/library_prefs.h"
#include "library/overviewcache.h"
#include "library/queryutil.h"
#include "moc_trackdao.cpp"
#include "sources/soundsourceproxy.h"
Expand Down
10 changes: 0 additions & 10 deletions src/library/tabledelegates/overviewdelegate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,6 @@ OverviewDelegate::OverviewDelegate(QTableView* pTableView)
m_pCache(OverviewCache::instance()),
m_type(mixxx::OverviewType::RGB),
m_inhibitLazyLoading(false) {
VERIFY_OR_DEBUG_ASSERT(m_pCache) {
kLogger.warning() << "Caching of overviews is not available";
return;
}

WLibrary* pLibrary = findLibraryWidgetParent(pTableView);
if (pLibrary) {
m_signalColors = pLibrary->getOverviewSignalColors();
Expand Down Expand Up @@ -148,11 +143,6 @@ void OverviewDelegate::slotOverviewChanged(const TrackId trackId) {
void OverviewDelegate::paintItem(QPainter* painter,
const QStyleOptionViewItem& option,
const QModelIndex& index) const {
if (!m_pCache) {
paintItemBackground(painter, option, index);
return;
}

const TrackId trackId(m_pTrackModel->getTrackId(index));
const double scaleFactor = m_pTableView->devicePixelRatioF();
QPixmap pixmap = m_pCache->requestCachedOverview(m_type,
Expand Down
7 changes: 0 additions & 7 deletions src/waveform/renderers/waveformoverviewrenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,10 @@
#include <QPainter>

#include "util/colorcomponents.h"
#include "util/logger.h"
#include "util/math.h"
#include "waveform/renderers/waveformsignalcolors.h"
#include "waveform/waveformwidgetfactory.h"

namespace {

const mixxx::Logger kLogger("WaveformOverviewRenderer");

} // anonymous namespace

QImage WaveformOverviewRenderer::render(ConstWaveformPointer pWaveform,
mixxx::OverviewType type,
const WaveformSignalColors& signalColors,
Expand Down
2 changes: 1 addition & 1 deletion src/waveform/renderers/waveformoverviewrenderer.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class WaveformSignalColors;

class WaveformOverviewRenderer {
public:
static QImage render(ConstWaveformPointer,
static QImage render(ConstWaveformPointer pWaveform,
mixxx::OverviewType type,
const WaveformSignalColors& signalColors,
bool mono = false);
Expand Down

0 comments on commit 17243c3

Please sign in to comment.