removes unused mappings