Remove get_style_info function in safe_interface.

It is only being used in the test.