Banning books from a library is an entirely different thing from curriculum.
No one’s forced to read the books in a library.
I guess I’m not the first person to think of this