X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fcontent_mapnode.h;h=76c3f6cd1546b277a6741f37ffab989ce27e19a2;hb=5e392cf34f8e062dd0533619921223656e32598a;hp=5c9c0b66dd33264bd53cf92d2bb83051d9e342bd;hpb=979ca23f1eae1adeb8b0083dffe7203c54d87395;p=dragonfireclient.git diff --git a/src/content_mapnode.h b/src/content_mapnode.h index 5c9c0b66d..76c3f6cd1 100644 --- a/src/content_mapnode.h +++ b/src/content_mapnode.h @@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef CONTENT_MAPNODE_HEADER -#define CONTENT_MAPNODE_HEADER +#pragma once #include "mapnode.h" @@ -33,12 +32,3 @@ MapNode mapnode_translate_to_internal(MapNode n_from, u8 version); // Get legacy node name mapping for loading old blocks class NameIdMapping; void content_mapnode_get_name_id_mapping(NameIdMapping *nimap); - -// Convert "CONTENT_STONE"-style names to dynamic ids -std::string content_mapnode_get_new_name(const std::string &oldname); -class INodeDefManager; -content_t legacy_get_id(const std::string &oldname, INodeDefManager *ndef); -#define LEGN(ndef, oldname) legacy_get_id(oldname, ndef) - -#endif -