diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2013-08-29 11:16:17 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2013-08-29 11:16:17 +0000 |
| commit | affc3f8720ab7b336fa3dbe2e1938182c2552a3f (patch) | |
| tree | 19529470a36b5e05c539ab464055f9564c8e502c /src | |
| parent | 3f1147d158cd1755f174eca9eef8de00f7485f4a (diff) | |
| download | qmmp-affc3f8720ab7b336fa3dbe2e1938182c2552a3f.tar.gz qmmp-affc3f8720ab7b336fa3dbe2e1938182c2552a3f.tar.bz2 qmmp-affc3f8720ab7b336fa3dbe2e1938182c2552a3f.zip | |
removed useless code
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@3673 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src')
| -rw-r--r-- | src/qmmpui/playlistmodel.cpp | 1 | ||||
| -rw-r--r-- | src/qmmpui/playlistmodel.h | 5 |
2 files changed, 2 insertions, 4 deletions
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<int> m_selected_indexes; /*!< Selected items numbers */ }; /*! @brief The PlayListModel class provides a data model for the playlist. |
