[gnome-music] query: Remove unused queries



commit ddbc2ad7f3458bfb297ec490aa2105291594438c
Author: Arnel Borja <arnelborja src gnome org>
Date:   Fri May 2 21:20:56 2014 +0800

    query: Remove unused queries
    
    Remove count queries for albums and artists, which were used for
    Load More buttons that are now gone.

 gnomemusic/query.py |   17 -----------------
 1 files changed, 0 insertions(+), 17 deletions(-)
---
diff --git a/gnomemusic/query.py b/gnomemusic/query.py
index cfc919d..5aef7db 100644
--- a/gnomemusic/query.py
+++ b/gnomemusic/query.py
@@ -105,14 +105,6 @@ class Query():
     ORDER BY fn:lower-case(?title) ?author ?albumyear
     '''.replace('\n', ' ').strip()
 
-    ALBUMS_COUNT = '''
-    SELECT
-        COUNT(?album) AS childcount
-    WHERE {
-        ?album a nmm:MusicAlbum
-    }
-    '''.replace('\n', ' ').strip()
-
     ARTISTS = '''
     SELECT DISTINCT
         rdf:type(?album)
@@ -190,15 +182,6 @@ class Query():
     ORDER BY fn:lower-case(?author) ?albumyear nie:title(?album)
     '''.replace('\n', ' ').strip()
 
-    ARTISTS_COUNT = '''
-    SELECT
-        COUNT(DISTINCT ?artist)
-    WHERE {
-        ?artist a nmm:Artist .
-        ?album nmm:performer ?artist
-    }
-    '''.replace('\n', ' ').strip()
-
     SONGS = '''
     SELECT DISTINCT
         rdf:type(?song)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]