added missing static to removeLineFromFile