Remove legacy content_abm.{cpp,h}
authorLoïc Blot <loic.blot@unix-experience.fr>
Wed, 14 Jun 2017 14:23:08 +0000 (16:23 +0200)
committerLoïc Blot <loic.blot@unix-experience.fr>
Wed, 14 Jun 2017 14:23:08 +0000 (16:23 +0200)
build/android/jni/Android.mk
src/CMakeLists.txt
src/content_abm.cpp [deleted file]
src/content_abm.h [deleted file]
src/network/serverpackethandler.cpp
src/server.cpp

index 8f3b342c514032501ef2c0a04a832c18ed5723fe..22ef20906009a380666bc04f5a791984e2c2dbe4 100644 (file)
@@ -124,7 +124,6 @@ LOCAL_SRC_FILES := \
                jni/src/clientobject.cpp                  \
                jni/src/clouds.cpp                        \
                jni/src/collision.cpp                     \
-               jni/src/content_abm.cpp                   \
                jni/src/content_cao.cpp                   \
                jni/src/content_cso.cpp                   \
                jni/src/content_mapblock.cpp              \
index 08ea809c765c05847aee44f5f39a7b1e7a1e992a..ad5639a48f59299a87d5e40aed1eb50138c4d6d4 100644 (file)
@@ -370,7 +370,6 @@ set(common_SRCS
        chat.cpp
        clientiface.cpp
        collision.cpp
-       content_abm.cpp
        content_mapnode.cpp
        content_nodemeta.cpp
        content_sao.cpp
diff --git a/src/content_abm.cpp b/src/content_abm.cpp
deleted file mode 100644 (file)
index 162f933..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
-Minetest
-Copyright (C) 2013 celeron55, Perttu Ahola <celeron55@gmail.com>
-
-This program is free software; you can redistribute it and/or modify
-it under the terms of the GNU Lesser General Public License as published by
-the Free Software Foundation; either version 2.1 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 Lesser General Public License for more details.
-
-You should have received a copy of the GNU Lesser 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 "content_abm.h"
-
-#include "environment.h"
-#include "gamedef.h"
-#include "nodedef.h"
-#include "content_sao.h"
-#include "settings.h"
-#include "mapblock.h" // For getNodeBlockPos
-#include "map.h"
-#include "scripting_server.h"
-#include "log.h"
-
-void add_legacy_abms(ServerEnvironment *env, INodeDefManager *nodedef)
-{
-}
diff --git a/src/content_abm.h b/src/content_abm.h
deleted file mode 100644 (file)
index 0fb3a04..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
-Minetest
-Copyright (C) 2013 celeron55, Perttu Ahola <celeron55@gmail.com>
-
-This program is free software; you can redistribute it and/or modify
-it under the terms of the GNU Lesser General Public License as published by
-the Free Software Foundation; either version 2.1 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 Lesser General Public License for more details.
-
-You should have received a copy of the GNU Lesser 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.
-*/
-
-#ifndef CONTENT_ABM_HEADER
-#define CONTENT_ABM_HEADER
-
-class ServerEnvironment;
-class INodeDefManager;
-
-/*
-       Legacy ActiveBlockModifiers
-*/
-
-void add_legacy_abms(ServerEnvironment *env, INodeDefManager *nodedef);
-
-#endif
index 6c766a37a57b81fce6141c30cd5f5781b2f98ca8..da421b36d32e81231d26c942ac9608eee5aa3ae9 100644 (file)
@@ -20,7 +20,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #include "server.h"
 #include "log.h"
 
-#include "content_abm.h"
 #include "content_sao.h"
 #include "emerge.h"
 #include "mapblock.h"
index a6af742a5c3588594002c7ddc0da70ada7b596dc..b4b6882e541febc42fcd26ad6d8bf5b51487f697 100644 (file)
@@ -47,7 +47,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #include "mg_biome.h"
 #include "content_mapnode.h"
 #include "content_nodemeta.h"
-#include "content_abm.h"
 #include "content_sao.h"
 #include "mods.h"
 #include "event_manager.h"
@@ -318,9 +317,6 @@ Server::Server(
                m_env->loadDefaultMeta();
        }
 
-       // Add some test ActiveBlockModifiers to environment
-       add_legacy_abms(m_env, m_nodedef);
-
        m_liquid_transform_every = g_settings->getFloat("liquid_update");
        m_max_chatmessage_length = g_settings->getU16("chat_message_max_size");
 }