summaryrefslogtreecommitdiff
path: root/sphinx/theming.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2017-04-20 23:38:48 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2017-04-21 00:09:50 +0900
commite24779b1ccd2ff88ab44d4db632e3784f4563f22 (patch)
tree27498f122482d985ff083abd071135a8dc9d6dc7 /sphinx/theming.py
parentca7bb5140eb5b4c7720a22c3a08eac8e9c6ddf58 (diff)
downloadsphinx-git-e24779b1ccd2ff88ab44d4db632e3784f4563f22.tar.gz
Drop old methods
Diffstat (limited to 'sphinx/theming.py')
-rw-r--r--sphinx/theming.py19
1 files changed, 2 insertions, 17 deletions
diff --git a/sphinx/theming.py b/sphinx/theming.py
index 7bf8a1399..c9fe904ea 100644
--- a/sphinx/theming.py
+++ b/sphinx/theming.py
@@ -81,8 +81,7 @@ class Theme(object):
raise ThemeError(_('no theme named %r found, inherited by %r') %
(inherit, name))
- @property
- def dirs(self):
+ def get_theme_dirs(self):
# type: () -> List[unicode]
"""Return a list of theme directories, beginning with this theme's,
then the base theme's, then that one's base theme's, etc.
@@ -90,14 +89,7 @@ class Theme(object):
if self.base is None:
return [self.themedir]
else:
- return [self.themedir] + self.base.get_dirchain()
-
- def get_dirchain(self):
- # type: () -> List[unicode]
- """Return a list of theme directories, beginning with this theme's,
- then the base theme's, then that one's base theme's, etc.
- """
- return self.dirs
+ return [self.themedir] + self.base.get_theme_dirs()
def get_config(self, section, name, default=NODEFAULT):
# type: (unicode, unicode, Any) -> Any
@@ -116,13 +108,6 @@ class Theme(object):
else:
return default
- def get_confstr(self, section, name, default=NODEFAULT):
- # type: (unicode, unicode, Any) -> Any
- """Return the value for a theme configuration setting, searching the
- base theme chain.
- """
- return self.get_config(section, name, default)
-
def get_options(self, overrides={}):
# type: (Dict[unicode, Any]) -> Dict[unicode, Any]
"""Return a dictionary of theme options and their values."""