Kill unused folder function.

This function isn’t used anywhere and isn’t right anymore — kill it.
Merge pull request #727 from jcushman/folder-flag

Kill unused folder function.