Remove unused codes

This commit is contained in:
Takeshi KOMIYA 2017-04-16 17:30:19 +09:00
parent c5e55c56c0
commit bda95d967e

View File

@ -15,14 +15,10 @@ import zipfile
import tempfile
from os import path
import pkg_resources
from six import string_types, iteritems
from six.moves import configparser
try:
import pkg_resources
except ImportError:
pkg_resources = False
from sphinx import package_dir
from sphinx.errors import ThemeError
from sphinx.util import logging
@ -230,10 +226,6 @@ def load_theme_plugins():
"""load plugins by using``sphinx_themes`` section in setuptools entry_points.
This API will return list of directory that contain some theme directory.
"""
if not pkg_resources:
return []
theme_paths = [] # type: List[unicode]
for plugin in pkg_resources.iter_entry_points('sphinx_themes'):