remove unused unregisterAllRegions code. fixes gh-2