removed redundant code for dropping content of an inventory