diff options
author | darkrose <lisa@ltmnet.com> | 2012-06-01 23:10:53 +1000 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-06-03 22:31:00 +0300 |
commit | c4315a7afafcc9adff945b5e63800340f6c2c008 (patch) | |
tree | 8ad98a55fa774c6c1123c1e1d463d508d6a8173d /src/nodemetadata.cpp | |
parent | 704782c95b8a4194a9383da55d93f37fd0f7278f (diff) | |
download | minetest-c4315a7afafcc9adff945b5e63800340f6c2c008.tar.gz minetest-c4315a7afafcc9adff945b5e63800340f6c2c008.tar.bz2 minetest-c4315a7afafcc9adff945b5e63800340f6c2c008.zip |
Strip unneeded variables from NodeMetadata
Diffstat (limited to 'src/nodemetadata.cpp')
-rw-r--r-- | src/nodemetadata.cpp | 18 |
1 files changed, 1 insertions, 17 deletions
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<<serializeString(m_inventorydrawspec); - os<<serializeString(m_formspec); - os<<serializeString(m_infotext); - writeU8(os, m_allow_removal); } void NodeMetadata::deSerialize(std::istream &is) @@ -72,20 +64,12 @@ void NodeMetadata::deSerialize(std::istream &is) } m_inventory->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; } /* |