Remove unused function
Use a simple assert function instead of library