diff options
Diffstat (limited to 'sim/serialize.cc')
-rw-r--r-- | sim/serialize.cc | 28 |
1 files changed, 2 insertions, 26 deletions
diff --git a/sim/serialize.cc b/sim/serialize.cc index dfd495a32..84d400e16 100644 --- a/sim/serialize.cc +++ b/sim/serialize.cc @@ -49,8 +49,8 @@ using namespace std; Serializer *Serializeable::serializer = NULL; -Serializeable::Serializeable(const string &n) - : objName(n), serialized(false) +Serializeable::Serializeable() + : serialized(false) { } Serializeable::~Serializeable() @@ -209,16 +209,6 @@ Serializeable::childOut(const string &name, Serializeable *child) } #endif -void -Serializeable::setName(const string &name) -{ - if (objName != "") { - cprintf("Renaming object '%s' to '%s'.\n", objName, name); - } - - objName = name; -} - Serializer::Serializer() { } @@ -272,20 +262,6 @@ Serializer::serialize(const string &f) add_objects(); while (!objects.empty()) { - Serializeable *serial = objects.front(); - DPRINTF(Serialize, "Naming children of %s\n", serial->name()); - serial->nameChildren(); - objects.pop_front(); - list.push_back(serial); - } - - while (!list.empty()) { - list.front()->serialized = false; - list.pop_front(); - } - - add_objects(); - while (!objects.empty()) { Serializeable *obj = objects.front(); DPRINTF(Serialize, "Serializing %s\n", obj->name()); obj->nameOut(out()); |