From 605af61a0fe77e7155446dab82666d6517d9e4a3 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 1 Mar 2015 00:25:30 +0100 Subject: db/simple: eliminate UpdateFileInArchive() if archive API is disabled Reduce some unnecessary overhead. --- src/db/plugins/simple/Song.hxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/db') diff --git a/src/db/plugins/simple/Song.hxx b/src/db/plugins/simple/Song.hxx index 192583681..c83bbace0 100644 --- a/src/db/plugins/simple/Song.hxx +++ b/src/db/plugins/simple/Song.hxx @@ -20,6 +20,7 @@ #ifndef MPD_SONG_HXX #define MPD_SONG_HXX +#include "check.h" #include "Chrono.hxx" #include "tag/Tag.hxx" #include "Compiler.h" @@ -109,7 +110,10 @@ struct Song { void Free(); bool UpdateFile(Storage &storage); + +#ifdef ENABLE_ARCHIVE bool UpdateFileInArchive(const Storage &storage); +#endif /** * Returns the URI of the song in UTF-8 encoding, including its -- cgit v1.2.3