Replace hacky version of calculate_max_depth
with simpler one.
#4731
Loading
calculate_max_depth
with simpler one.
#4731