aboutsummaryrefslogtreecommitdiff
path: root/src/script
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2015-07-17 13:46:18 -0400
committerPieter Wuille <pieter.wuille@gmail.com>2015-07-20 11:17:53 -0400
commit9e38d0f7451092f6a16853a2b0a37b68a5b3c3fb (patch)
tree469af8922b6454945e160b99e118d35873470180 /src/script
parent89289d875da108c42ca013f33597eda46cb6eb53 (diff)
Separate core memory usage computation in core_memusage.h
Diffstat (limited to 'src/script')
-rw-r--r--src/script/script.cpp5
-rw-r--r--src/script/script.h3
2 files changed, 0 insertions, 8 deletions
diff --git a/src/script/script.cpp b/src/script/script.cpp
index b1d2ceeb9f..fd33924732 100644
--- a/src/script/script.cpp
+++ b/src/script/script.cpp
@@ -260,8 +260,3 @@ std::string CScript::ToString() const
}
return str;
}
-
-size_t CScript::DynamicMemoryUsage() const
-{
- return memusage::DynamicUsage(*(static_cast<const std::vector<unsigned char>*>(this)));
-}
diff --git a/src/script/script.h b/src/script/script.h
index aea34d05f4..e39ca57f4f 100644
--- a/src/script/script.h
+++ b/src/script/script.h
@@ -6,7 +6,6 @@
#ifndef BITCOIN_SCRIPT_SCRIPT_H
#define BITCOIN_SCRIPT_SCRIPT_H
-#include "memusage.h"
#include "crypto/common.h"
#include <assert.h>
@@ -608,8 +607,6 @@ public:
// The default std::vector::clear() does not release memory.
std::vector<unsigned char>().swap(*this);
}
-
- size_t DynamicMemoryUsage() const;
};
class CReserveScript