From 972c38b1cc5f6f6c649a0e9923695447bc5d6255 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Thu, 2 May 2019 15:33:32 -0700 Subject: arch, base, cpu, dev, mem, sim: Remove #if 0-ed out code. This code will be preserved through version control, but otherwise creates clutter and will rot in place since it's never compiled. Change-Id: Id265f6deac445116843956ea5cf1210d8127274e Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/18608 Reviewed-by: Jason Lowe-Power Reviewed-by: Brandon Potter Maintainer: Jason Lowe-Power Tested-by: kokoro --- src/sim/process.cc | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/sim') diff --git a/src/sim/process.cc b/src/sim/process.cc index d400b5def..9d6f3d17f 100644 --- a/src/sim/process.cc +++ b/src/sim/process.cc @@ -387,11 +387,6 @@ Process::serialize(CheckpointOut &cp) const */ warn("Checkpoints for file descriptors currently do not work."); -#if 0 - for (int x = 0; x < fds->getSize(); x++) - (*fds)[x].serializeSection(cp, csprintf("FDEntry%d", x)); -#endif - } void @@ -404,11 +399,6 @@ Process::unserialize(CheckpointIn &cp) * come back and fix them at a later date. */ warn("Checkpoints for file descriptors currently do not work."); -#if 0 - for (int x = 0; x < fds->getSize(); x++) - (*fds)[x]->unserializeSection(cp, csprintf("FDEntry%d", x)); - fds->restoreFileOffsets(); -#endif // The above returns a bool so that you could do something if you don't // find the param in the checkpoint if you wanted to, like set a default // but in this case we'll just stick with the instantiated value if not -- cgit v1.2.3