- comment unused funcs/vars. - replace some allocs with stack variables. - use BLI_math functions to replace in-line vector math.
- comment unused funcs/vars. - replace some allocs with stack variables. - use BLI_math functions to replace in-line vector math.