Remove trivial & single-usage chain decorator

This commit is contained in:
enkore 2013-10-23 16:55:10 +02:00
parent 5eb271c684
commit ead0285ecc
2 changed files with 1 additions and 10 deletions

View File

@ -40,9 +40,9 @@ class Module(SettingsBase):
elif button == 3: # Right mouse button
self.on_rightclick()
@chain
def move(self, position):
self.position = position
return self
def on_leftclick(self):
pass

View File

@ -10,15 +10,6 @@ from i3pystatus.core.exceptions import *
from i3pystatus.core.imputil import ClassFinder
def chain(fun):
"""Method decorator to implicitly return `self` from the decorated method
"""
def chained(self, *args, **kwargs):
fun(self, *args, **kwargs)
return self
return chained
def lchop(string, prefix):
"""Removes a prefix from string