cleanup:

- unused check (obsquare is always >0)
- cx/xy isn't used
fix line endings