db/simple: eliminate UpdateFileInArchive() if archive API is disabled

Reduce some unnecessary overhead.
This commit is contained in:
Max Kellermann
2015-03-01 00:25:30 +01:00
parent 77e163e5b8
commit 605af61a0f
2 changed files with 14 additions and 2 deletions

View File

@@ -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