From affc3f8720ab7b336fa3dbe2e1938182c2552a3f Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Thu, 29 Aug 2013 11:16:17 +0000 Subject: removed useless code git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@3673 90c681e8-e032-0410-971d-27865f9a5e38 --- src/qmmpui/playlistmodel.cpp | 1 - src/qmmpui/playlistmodel.h | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/qmmpui/playlistmodel.cpp b/src/qmmpui/playlistmodel.cpp index 2646b71ed..66955f6b9 100644 --- a/src/qmmpui/playlistmodel.cpp +++ b/src/qmmpui/playlistmodel.cpp @@ -530,7 +530,6 @@ int PlayListModel::bottommostInSelection(int row) const SimpleSelection& PlayListModel::getSelection(int row) { m_selection.m_top = topmostInSelection(row); - m_selection.m_anchor = row; m_selection.m_bottom = bottommostInSelection(row); m_selection.m_selected_indexes = selectedIndexes(); return m_selection; diff --git a/src/qmmpui/playlistmodel.h b/src/qmmpui/playlistmodel.h index 769b55dc8..149cc3e49 100644 --- a/src/qmmpui/playlistmodel.h +++ b/src/qmmpui/playlistmodel.h @@ -55,14 +55,14 @@ struct SimpleSelection */ inline bool isValid()const { - return (m_bottom != -1) && (m_anchor != -1) && (m_top != -1); + return (m_bottom != -1) && (m_top != -1); } /*! * Prints object state. */ inline void dump()const { - qWarning("top: %d\tbotom: %d\tanchor: %d", m_top, m_bottom, m_anchor); + qWarning("top: %d\tbotom: %d", m_top, m_bottom); } /*! * Returns number of selected items. @@ -73,7 +73,6 @@ struct SimpleSelection } int m_bottom; /*!< Bottom of the selection */ int m_top; /*!< Top of the selection */ - int m_anchor; /*!< Main index of the selection */ QList m_selected_indexes; /*!< Selected items numbers */ }; /*! @brief The PlayListModel class provides a data model for the playlist. -- cgit v1.2.3-13-gbd6f