From c2292b2cd62ae3155928385251bbcb1a00c29ad1 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Mon, 6 Dec 2021 17:30:42 +0100 Subject: Cleanup: remove unnecessary extern template implementations This technique isn't really necessary anymore, because unity builds avoid instantiating the same template too many times already. --- .../blender/nodes/intern/extern_implementations.cc | 35 ---------------------- 1 file changed, 35 deletions(-) delete mode 100644 source/blender/nodes/intern/extern_implementations.cc (limited to 'source/blender/nodes/intern/extern_implementations.cc') diff --git a/source/blender/nodes/intern/extern_implementations.cc b/source/blender/nodes/intern/extern_implementations.cc deleted file mode 100644 index 35de319f20b..00000000000 --- a/source/blender/nodes/intern/extern_implementations.cc +++ /dev/null @@ -1,35 +0,0 @@ -/* - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software Foundation, - * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include "NOD_socket_declarations.hh" -#include "NOD_socket_declarations_geometry.hh" - -namespace blender::nodes { -#define MAKE_EXTERN_SOCKET_IMPLEMENTATION(TYPE) \ - template class SocketDeclarationBuilder; \ - template TYPE::Builder &NodeDeclarationBuilder::add_input(StringRef, StringRef); \ - template TYPE::Builder &NodeDeclarationBuilder::add_output(StringRef, StringRef); - -MAKE_EXTERN_SOCKET_IMPLEMENTATION(decl::Float) -MAKE_EXTERN_SOCKET_IMPLEMENTATION(decl::Int) -MAKE_EXTERN_SOCKET_IMPLEMENTATION(decl::Vector) -MAKE_EXTERN_SOCKET_IMPLEMENTATION(decl::Bool) -MAKE_EXTERN_SOCKET_IMPLEMENTATION(decl::Color) -MAKE_EXTERN_SOCKET_IMPLEMENTATION(decl::String) -MAKE_EXTERN_SOCKET_IMPLEMENTATION(decl::Geometry) - -#undef MAKE_EXTERN_SOCKET_IMPLEMENTATION -} // namespace blender::nodes -- cgit v1.2.3