summaryrefslogtreecommitdiff
path: root/src/inventory.cpp
diff options
context:
space:
mode:
authorLoïc Blot <nerzhul@users.noreply.github.com>2017-08-30 08:09:41 +0200
committerGitHub <noreply@github.com>2017-08-30 08:09:41 +0200
commitbd6b90359c654f4c75964755e476a8bfd90114ba (patch)
tree2c3322587dfd845efc1332feed6708b9f02a9f69 /src/inventory.cpp
parent43f9e948a128606ba4d446b79999ca8718b4456a (diff)
downloadminetest-bd6b90359c654f4c75964755e476a8bfd90114ba.tar.gz
minetest-bd6b90359c654f4c75964755e476a8bfd90114ba.tar.bz2
minetest-bd6b90359c654f4c75964755e476a8bfd90114ba.zip
Remove DSTACK support (#6346)
Debugstacks is not useful, we don't really use it, the DebugStack is not pertinent, gdb and lldb are better if we really want to debug.
Diffstat (limited to 'src/inventory.cpp')
-rw-r--r--src/inventory.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/inventory.cpp b/src/inventory.cpp
index 82325997e..fb2dd245f 100644
--- a/src/inventory.cpp
+++ b/src/inventory.cpp
@@ -57,9 +57,7 @@ ItemStack::ItemStack(const std::string &name_, u16 count_,
void ItemStack::serialize(std::ostream &os) const
{
- DSTACK(FUNCTION_NAME);
-
- if(empty())
+ if (empty())
return;
// Check how many parts of the itemstring are needed
@@ -84,8 +82,6 @@ void ItemStack::serialize(std::ostream &os) const
void ItemStack::deSerialize(std::istream &is, IItemDefManager *itemdef)
{
- DSTACK(FUNCTION_NAME);
-
clear();
// Read name