protected void removeMapping(HashEntry<K, V> entry, int hashIndex, HashEntry<K, V> previous) {
        modCount++;
        removeEntry(entry, hashIndex, previous);
        size--;
        destroyEntry(entry);
    }
Removes a mapping from the map.
<p/>
This implementation calls <code>removeEntry()</code> and <code>destroyEntry()</code>.
It also handles changes to <code>modCount</code> and <code>size</code>.
Subclasses could override to fully control removals from the map.

@param entry     the entry to remove
@param hashIndex the index into the data structure
@param previous  the previous entry in the chain
jphp-runtime/src/php/runtime/common/collections/map/AbstractHashedMap.java