(As a resident geek, I was asked to look into this by a friend)
For good measure, the commit seems to be removed from the original repo.
It's pretty much the same as if it was hardcoded, it drops all tables that have a name starting with the WP prefix. It's extremely ugly, but it's not unsafe (if your plan is removing all WP related tables from the DB).