summaryrefslogtreecommitdiff
authorsimon <simon>2002-12-02 17:10:14 (UTC)
committer simon <simon>2002-12-02 17:10:14 (UTC)
commite2e40368d1e98cfd3814e14a56c0e503d494cf4f (patch) (side-by-side diff)
tree2dc59b9f4e5c5a8cd971934b1dd5976939bbac37
parentd86803bacac02ae99388cba069532851a5e08ce8 (diff)
downloadopie-e2e40368d1e98cfd3814e14a56c0e503d494cf4f.zip
opie-e2e40368d1e98cfd3814e14a56c0e503d494cf4f.tar.gz
opie-e2e40368d1e98cfd3814e14a56c0e503d494cf4f.tar.bz2
- removed unused (and never initialized to something != 0)
PlayListWidgetPrivate::current
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/playlistwidget.cpp7
-rw-r--r--noncore/multimedia/opieplayer2/playlistwidgetgui.cpp1
-rw-r--r--noncore/multimedia/opieplayer2/playlistwidgetgui.h1
3 files changed, 1 insertions, 8 deletions
diff --git a/noncore/multimedia/opieplayer2/playlistwidget.cpp b/noncore/multimedia/opieplayer2/playlistwidget.cpp
index 55b66ab..6355bec 100644
--- a/noncore/multimedia/opieplayer2/playlistwidget.cpp
+++ b/noncore/multimedia/opieplayer2/playlistwidget.cpp
@@ -171,5 +171,2 @@ PlayListWidget::PlayListWidget( QWidget* parent, const char* name, WFlags fl )
PlayListWidget::~PlayListWidget() {
- if ( d->current ) {
- delete d->current;
- }
delete d;
@@ -430,6 +427,4 @@ const DocLnk *PlayListWidget::current() const { // this is fugly
// qDebug("playlist");
- if ( mediaPlayerState->isUsingPlaylist() ) {
+ if ( mediaPlayerState->isUsingPlaylist() )
return d->selectedFiles->current();
- } else if ( d->setDocumentUsed && d->current )
- return d->current;
diff --git a/noncore/multimedia/opieplayer2/playlistwidgetgui.cpp b/noncore/multimedia/opieplayer2/playlistwidgetgui.cpp
index a217c94..db7c979 100644
--- a/noncore/multimedia/opieplayer2/playlistwidgetgui.cpp
+++ b/noncore/multimedia/opieplayer2/playlistwidgetgui.cpp
@@ -68,3 +68,2 @@ PlayListWidgetGui::PlayListWidgetGui( QWidget* parent, const char* name, WFlags
d->setDocumentUsed = FALSE;
- d->current = NULL;
diff --git a/noncore/multimedia/opieplayer2/playlistwidgetgui.h b/noncore/multimedia/opieplayer2/playlistwidgetgui.h
index 6c35771..4eefb93 100644
--- a/noncore/multimedia/opieplayer2/playlistwidgetgui.h
+++ b/noncore/multimedia/opieplayer2/playlistwidgetgui.h
@@ -66,3 +66,2 @@ public:
bool setDocumentUsed;
- DocLnk *current;
};