From 0d42eaa15207900a2b3350435bcabe6d40d21184 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 28 Aug 2014 17:46:18 +0200 Subject: [PATCH] Remove useless getraw() from ColorDict/FontDict. --- qutebrowser/config/style.py | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/qutebrowser/config/style.py b/qutebrowser/config/style.py index 62d84ef03..1295cdca9 100644 --- a/qutebrowser/config/style.py +++ b/qutebrowser/config/style.py @@ -103,20 +103,6 @@ class ColorDict(dict): else: return val - def getraw(self, key): - """Get a value without the transformations done in __getitem__. - - Args: - key: The key to get from the dict. - - Return: - A value, or None if the value wasn't found. - """ - try: - return super().__getitem__(key) - except KeyError: - return None - class FontDict(dict): @@ -140,17 +126,3 @@ class FontDict(dict): return '' else: return 'font: {};'.format(val) - - def getraw(self, key): - """Get a value without the transformations done in __getitem__. - - Args: - key: The key to get from the dict. - - Return: - A value, or None if the value wasn't found. - """ - try: - return super().__getitem__(key) - except KeyError: - return None