src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js
function (mMap, sPath, oItem) {
			var aItems = mMap[sPath],
				iIndex;

			if (aItems) {
				iIndex = aItems.indexOf(oItem);
				if (iIndex >= 0) {
					if (aItems.length === 1) {
						delete mMap[sPath];
					} else {
						aItems.splice(iIndex, 1);
					}
				}
			}
		}
function (mMap, sPath, oItem) {
			var aItems = mMap[sPath],
				iIndex;

			if (aItems) {
				iIndex = aItems.indexOf(oItem);
				if (iIndex >= 0) {
					if (aItems.length === 1) {
						delete mMap[sPath];
					} else {
						aItems.splice(iIndex, 1);
					}
				}
			}
		}
function ( mMap , sPath , oItem ) { var aItems = mMap [ sPath ] , iIndex ; if ( aItems ) { iIndex = aItems . indexOf ( oItem ) ; if ( iIndex >= 0 ) { if ( aItems . length === 1 ) { delete mMap [ sPath ] ; } else { aItems . splice ( iIndex , 1 ) ; } } } }
Removes an item from the given map by path.

@param {object} mMap
A map from path to a list of items
@param {string} sPath
The path
@param {object} oItem
The item
Removes an item from the given map by path .