Remove unused code in MemorySizeCalculatorTest.