From 50040b24f5d0b3eb60df36d0d0d3576cd1554527 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Fri, 21 Mar 2008 14:33:44 -0600 Subject: [PATCH] remove unused code from util.cpp --- src/util.cpp | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/util.cpp b/src/util.cpp index e88b181ffa..d983951a06 100644 --- a/src/util.cpp +++ b/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(clone) + 1, - reinterpret_cast(o) + 1, - size - BytesPerWord); - - return clone; -} - -} // namespace - namespace vm { object