redundant get call

removed a redundant map.get() before map.remove()