]> git.sesse.net Git - ccbs/blobdiff - bigscreen/fetch_max_score_for_song.h
Fetch all the "max score for song" entries in one go instead of one at a time.
[ccbs] / bigscreen / fetch_max_score_for_song.h
diff --git a/bigscreen/fetch_max_score_for_song.h b/bigscreen/fetch_max_score_for_song.h
deleted file mode 100644 (file)
index f3b9f77..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-#ifndef _FETCH_MAX_SCORE_FOR_SONG_H
-#define _FETCH_MAX_SCORE_FOR_SONG_H 1
-
-#include <pqxx/transactor>
-
-/* A transactor that fetches the maximum score for a song */
-class FetchMaxScoreForSong : public pqxx::transactor<> {
-private:
-       unsigned tournament, song, *score;
-
-public:
-       FetchMaxScoreForSong(unsigned tournament, unsigned song, unsigned *score);
-       void operator() (pqxx::transaction<> &t);
-};
-
-#endif /* !defined(_FETCH_MAX_SCORE_FOR_SONG_H) */