Skip to content

Commit

Permalink
Remove redundant unused views code.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamadden committed Jun 29, 2017
1 parent 79b5fd2 commit d1b8ac1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 48 deletions.
2 changes: 1 addition & 1 deletion src/zope/component/standalonetests.py
Expand Up @@ -5,7 +5,7 @@
import sys # pragma: no cover (runs in subprocess)
import pickle # pragma: no cover (runs in subprocess)

def write(x):
def write(x): # pragma: no cover (runs in subprocess)
sys.stdout.write('%s\n' % x)

if __name__ == "__main__": # pragma: no cover (runs in subprocess)
Expand Down
48 changes: 1 addition & 47 deletions src/zope/component/testfiles/views.py
Expand Up @@ -15,52 +15,6 @@
"""

from zope.interface import Interface
from zope.interface import implementer
from zope.interface import directlyProvides

class Request(object):

def __init__(self, type):
directlyProvides(self, type)

class IR(Interface):
pass

class IV(Interface):
def index():
pass

class IC(Interface): pass

@implementer(IV)
class V1(object):

def __init__(self, context, request):
self.context = context
self.request = request

def index(self):
return 'V1 here'

def action(self):
return 'done'

class VZMI(V1):
def index(self):
return 'ZMI here'

@implementer(IV)
class R1(object):

def index(self):
return 'R1 here'

def action(self):
return 'R done'

def __init__(self, request):
pass


class RZMI(R1):
class IC(Interface):
pass

0 comments on commit d1b8ac1

Please sign in to comment.