From c4315a7afafcc9adff945b5e63800340f6c2c008 Mon Sep 17 00:00:00 2001 From: darkrose Date: Fri, 1 Jun 2012 23:10:53 +1000 Subject: Strip unneeded variables from NodeMetadata --- src/nodemetadata.cpp | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'src/nodemetadata.cpp') diff --git a/src/nodemetadata.cpp b/src/nodemetadata.cpp index c76ad1f4b..0b63d7779 100644 --- a/src/nodemetadata.cpp +++ b/src/nodemetadata.cpp @@ -31,11 +31,7 @@ with this program; if not, write to the Free Software Foundation, Inc., NodeMetadata::NodeMetadata(IGameDef *gamedef): m_stringvars(), - m_inventory(new Inventory(gamedef->idef())), - m_inventorydrawspec(""), - m_formspec(""), - m_infotext(""), - m_allow_removal(true) + m_inventory(new Inventory(gamedef->idef())) { } @@ -55,10 +51,6 @@ void NodeMetadata::serialize(std::ostream &os) const } m_inventory->serialize(os); - os<deSerialize(is); - m_inventorydrawspec = deSerializeString(is); - m_formspec = deSerializeString(is); - m_infotext = deSerializeString(is); - m_allow_removal = readU8(is); } void NodeMetadata::clear() { m_stringvars.clear(); m_inventory->clear(); - m_inventorydrawspec = ""; - m_formspec = ""; - m_infotext = ""; - m_allow_removal = true; } /* -- cgit v1.2.3