diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2013-07-17 17:45:42 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2013-07-17 17:45:42 +0000 |
| commit | 0d388c78e8cb52ce8030fa635c6222ce11244dcd (patch) | |
| tree | 4b52d11306d1f3bfee8b0915e34d571bd7797ed0 /src/qmmpui/playlistitem.cpp | |
| parent | 178b0feca97ea4b75bbf37978a74e0cccfff5695 (diff) | |
| download | qmmp-0d388c78e8cb52ce8030fa635c6222ce11244dcd.tar.gz qmmp-0d388c78e8cb52ce8030fa635c6222ce11244dcd.tar.bz2 qmmp-0d388c78e8cb52ce8030fa635c6222ce11244dcd.zip | |
removed useless code
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@3554 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/qmmpui/playlistitem.cpp')
| -rw-r--r-- | src/qmmpui/playlistitem.cpp | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/src/qmmpui/playlistitem.cpp b/src/qmmpui/playlistitem.cpp index edb676cbc..3956a1d1a 100644 --- a/src/qmmpui/playlistitem.cpp +++ b/src/qmmpui/playlistitem.cpp @@ -27,7 +27,6 @@ PlayListItem::PlayListItem() : QMap<Qmmp::MetaData, QString>(), m_flag(FREE) m_info = 0; m_length = 0; m_selected = false; - m_current = false; } PlayListItem::PlayListItem(const PlayListItem &other) : QMap<Qmmp::MetaData, QString>(other), @@ -39,7 +38,6 @@ PlayListItem::PlayListItem(const PlayListItem &other) : QMap<Qmmp::MetaData, QSt else m_info = 0; m_selected = other.m_selected; - m_current = other.m_current; m_length = other.m_length; m_formattedLength = other.m_formattedLength; } @@ -48,7 +46,6 @@ PlayListItem::PlayListItem(FileInfo *info) : QMap<Qmmp::MetaData, QString>(info { setLength(m_length = info->length()); m_selected = false; - m_current = false; m_info = info; insert(Qmmp::URL, m_info->path()); } @@ -69,16 +66,6 @@ bool PlayListItem::isSelected() const return m_selected; } -void PlayListItem::setCurrent(bool yes) -{ - m_current = yes; -} - -bool PlayListItem::isCurrent() const -{ - return m_current; -} - void PlayListItem::setFlag(FLAGS f) { m_flag = f; @@ -115,6 +102,12 @@ void PlayListItem::updateTags() delete list.takeLast(); } +const QString PlayListItem::groupName() const +{ + MetaDataFormatter f("%p"); + return f.parse(this); +} + const QString PlayListItem::formattedTitle() { if(m_formattedTitle.isEmpty()) |
