Removed leftover function used by an assert which was removed by commit 39fc0d4eb581c3d9e271c45e77738ede97a8fa8f