Well, I am not entirely familiar with QGis, but line 564 until 567 adds some fields in the feature (area, perimeter and outId). When I remove these lines, the fields area and perimeter still exists (when I click in the added feature, using the info tool, these fields are showed for me).