From c3fec2466ed44e3d65b8dceb5a80bc621176d45d Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 7 Apr 2024 00:20:13 +0200 Subject: b --- src/scenery.cpp | 15 --------------- src/scenery.hpp | 3 --- 2 files changed, 18 deletions(-) (limited to 'src') diff --git a/src/scenery.cpp b/src/scenery.cpp index fb3010f1..c5575f6a 100644 --- a/src/scenery.cpp +++ b/src/scenery.cpp @@ -13,21 +13,6 @@ namespace floormat { namespace { -template struct [[maybe_unused]] overloaded : Ts... { using Ts::operator()...; }; - -#if defined __GNUG__ && !defined __clang__ -#pragma GCC diagnostic push // gcc doesn't support [[attributes]] on deduction guides -#pragma GCC diagnostic ignored "-Wunused" -#endif -template -#ifdef __clang__ -[[maybe_unused]] -#endif -overloaded(Ts...) -> overloaded; -#if defined __GNUG__ && !defined __clang__ -#pragma GCC diagnostic pop -#endif - template struct proto_to_scenery_; template<> struct proto_to_scenery_ { using type = generic_scenery; }; template<> struct proto_to_scenery_ { using type = door_scenery; }; diff --git a/src/scenery.hpp b/src/scenery.hpp index cc728a4b..e668f7a2 100644 --- a/src/scenery.hpp +++ b/src/scenery.hpp @@ -11,9 +11,6 @@ namespace floormat { -template struct [[maybe_unused]] overloaded : Ts... { using Ts::operator()...; }; -template overloaded(Ts...) -> overloaded; - class chunk; class anim_atlas; class world; -- cgit v1.2.3