Skip to content

Commit

Permalink
Get rid of some crufty clear functionality.
Browse files Browse the repository at this point in the history
  • Loading branch information
faassen committed Mar 30, 2016
1 parent 474ed79 commit 733749d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 12 deletions.
3 changes: 0 additions & 3 deletions morepath/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,6 @@ class ConverterRegistry(object):
Is aware of inheritance.
"""
def __init__(self):
self.clear()

def clear(self):
self._registry = PredicateRegistry(match_class('cls', lambda cls: cls))

def register_converter(self, type, converter):
Expand Down
5 changes: 0 additions & 5 deletions morepath/tests/test_view_directive.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ def setup_module(module):
morepath.disable_implicit()


# def setup_function(f):
# if hasattr(morepath.App.config, 'registry'):
# morepath.App.config.registry.clear()


def test_view_get_only():
class App(morepath.App):
pass
Expand Down
5 changes: 1 addition & 4 deletions morepath/tween.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,10 @@

class TweenRegistry(object):
def __init__(self):
self.clear()
self._tween_infos = []

def register_tween_factory(self, tween_factory, over, under):
self._tween_infos.append(Info(tween_factory, over, under))

def clear(self):
self._tween_infos = []

def sorted_tween_factories(self):
return [info.key for info in toposorted(self._tween_infos)]

0 comments on commit 733749d

Please sign in to comment.