mirror of
https://github.com/corda/corda.git
synced 2025-01-21 03:55:00 +00:00
remove unused code from util.cpp
This commit is contained in:
parent
c7a357aa5e
commit
50040b24f5
18
src/util.cpp
18
src/util.cpp
@ -12,24 +12,6 @@
|
||||
|
||||
using namespace vm;
|
||||
|
||||
namespace {
|
||||
|
||||
object
|
||||
clone(Thread* t, object o)
|
||||
{
|
||||
object class_ = objectClass(t, o);
|
||||
unsigned size = baseSize(t, o, class_) * BytesPerWord;
|
||||
|
||||
object clone = make(t, class_);
|
||||
memcpy(reinterpret_cast<void**>(clone) + 1,
|
||||
reinterpret_cast<void**>(o) + 1,
|
||||
size - BytesPerWord);
|
||||
|
||||
return clone;
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
namespace vm {
|
||||
|
||||
object
|
||||
|
Loading…
Reference in New Issue
Block a user