Page MenuHome

UI: Remove dead code in editors/interface/interface.c
AbandonedPublic

Authored by Luis de Bethencourt Guimera (luisbg) on Aug 15 2019, 12:08 AM.

Details

Summary

The CLAMP might be a good protection to keep but int_digits_num is an undeclared indentifier in the scope of this else block. Removing the code that has been marked not to be compiled.

Unless somebody has a proposal of what this code should do instead to control the amount of decimal points to display.

Diff Detail

Repository
rB Blender

Event Timeline

This code has been compiled out since August 1st 2017.

The original commit that introduced the TODO was 636289b755f6cea1167440602a06aedf5cc2e1d5.

thanks for noting this, but no reason to remove it, just enabled it.

Thanks for fixing this :)

I would've been happy to offer a second revision moving the variable declaration and enabling the code. It would've been my first contribution, but I understand it was a quick and easy one for you to do.