tracking.js
function deleteLegacyState(trackedItem, context) {
  const taskTrackingName = Settings.getLegacyTaskTrackingName(context);
  return taskTrackingName && trackedItem ? delete trackedItem[taskTrackingName] : true;
}
function deleteLegacyState(trackedItem, context) {
  const taskTrackingName = Settings.getLegacyTaskTrackingName(context);
  return taskTrackingName && trackedItem ? delete trackedItem[taskTrackingName] : true;
}
function deleteLegacyState ( trackedItem , context ) { const taskTrackingName = Settings . getLegacyTaskTrackingName ( context ) ; return taskTrackingName && trackedItem ? delete trackedItem [ taskTrackingName ] : true ; }
Deletes any legacy task tracking state attached directly to the tracked item from previous runs of older versions of
aws-stream-consumer.
@param {TrackedItem} trackedItem - the tracked item from which to remove its legacy tracked state
@param {StreamConsumerContext} context - the context to use to resolve the name of the legacy task tracking state property
@return {boolean} whether the task tracking state property was deleted or not
Deletes any legacy task tracking state attached directly to the tracked item from previous runs of older versions of aws - stream - consumer .