gustafn
committed
on 16 Mar 21
avoid call to deprecated function, simplify code