Remove unused methods from ObjectMemory
Method in machine code can be const
Small cleanup of unused code