Why does this method declare these formal parameters: `slice, dir, startTS, endTS, origStartTS` and never uses them?