remove unused var ->filemode