lib/modifiers/summary/removePart.js
function removePart(summary, index) {
    var parts = summary.getParts().remove(index);
    return indexLevels(summary.set('parts', parts));
}
function removePart(summary, index) {
    var parts = summary.getParts().remove(index);
    return indexLevels(summary.set('parts', parts));
}
function removePart ( summary , index ) { var parts = summary . getParts ( ) . remove ( index ) ; return indexLevels ( summary . set ( 'parts' , parts ) ) ; }
Remove a part at given index

@param {Summary} summary
@param {Number|} index
@return {Summary}
Remove a part at given index