remove seemingly unused function in enumeration header which breaks with msvc - closes #1686