AGJS-42: removed unused variables in impl