edit inlines and remove unused var [skip ci]