From cc6e7f349c6eabca5d213be0066324b00ae4ec41 Mon Sep 17 00:00:00 2001 From: "Uwe L. Korn" Date: Sun, 28 Sep 2014 17:54:39 +0100 Subject: [PATCH] Remove Result::isValid as it's always true --- src/libtomahawk/Result.cpp | 7 ------- src/libtomahawk/Result.h | 2 -- 2 files changed, 9 deletions(-) diff --git a/src/libtomahawk/Result.cpp b/src/libtomahawk/Result.cpp index 3dfe15799..b209eef60 100644 --- a/src/libtomahawk/Result.cpp +++ b/src/libtomahawk/Result.cpp @@ -128,13 +128,6 @@ Result::deleteLater() } -bool -Result::isValid() const -{ - return m_track && !m_track->artist().isEmpty() && !m_track->track().isEmpty(); -} - - void Result::onResolverRemoved( Tomahawk::Resolver* resolver ) { diff --git a/src/libtomahawk/Result.h b/src/libtomahawk/Result.h index a63f39acc..c8a0f3c83 100644 --- a/src/libtomahawk/Result.h +++ b/src/libtomahawk/Result.h @@ -72,8 +72,6 @@ public: virtual ~Result(); - bool isValid() const; - QVariant toVariant() const; QString toString() const; Tomahawk::query_ptr toQuery();