*: remove lots of GCC 4.8 fallback code

We can remove those C++11 and C++14 kludges because we require GCC 4.9
now.
This commit is contained in:
Max Kellermann
2017-05-16 11:29:15 +02:00
parent 86a0a42a8d
commit 59e4f1ee0f
9 changed files with 4 additions and 65 deletions

View File

@@ -46,19 +46,11 @@ StatsVisitTag(DatabaseStats &stats, StringSet &artists, StringSet &albums,
for (const auto &item : tag) {
switch (item.type) {
case TAG_ARTIST:
#if CLANG_OR_GCC_VERSION(4,8)
artists.emplace(item.value);
#else
artists.insert(item.value);
#endif
break;
case TAG_ALBUM:
#if CLANG_OR_GCC_VERSION(4,8)
albums.emplace(item.value);
#else
albums.insert(item.value);
#endif
break;
default:

View File

@@ -625,11 +625,7 @@ UpnpDatabase::VisitUniqueTags(const DatabaseSelection &selection,
const char *value = dirent.tag.GetValue(tag);
if (value != nullptr) {
#if CLANG_OR_GCC_VERSION(4,8)
values.emplace(value);
#else
values.insert(value);
#endif
}
}
}