Increment patch version to 0.4.2

Also, remove unused variable.