Separate core memory usage computation in core_memusage.h
This commit is contained in:
committed by
Jack Grigg
parent
bde5c8b0f1
commit
6bd1d60c97
@@ -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)));
|
||||
}
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
#ifndef BITCOIN_SCRIPT_SCRIPT_H
|
||||
#define BITCOIN_SCRIPT_SCRIPT_H
|
||||
|
||||
#include "memusage.h"
|
||||
#include "crypto/common.h"
|
||||
|
||||
#include <assert.h>
|
||||
@@ -583,8 +582,6 @@ public:
|
||||
// The default std::vector::clear() does not release memory.
|
||||
std::vector<unsigned char>().swap(*this);
|
||||
}
|
||||
|
||||
size_t DynamicMemoryUsage() const;
|
||||
};
|
||||
|
||||
#endif // BITCOIN_SCRIPT_SCRIPT_H
|
||||
|
||||
Reference in New Issue
Block a user