From ca281b7c1b41ace8622a8dfda8f0e55cc72555e4 Mon Sep 17 00:00:00 2001 From: holger krekel Date: Fri, 2 Nov 2012 16:04:56 +0100 Subject: [PATCH] remove unused code --- _pytest/python.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/_pytest/python.py b/_pytest/python.py index 45a914553..5b35ab272 100644 --- a/_pytest/python.py +++ b/_pytest/python.py @@ -1286,12 +1286,6 @@ scopenum_subfunction = scopes.index("subfunction") def scopemismatch(currentscope, newscope): return scopes.index(newscope) > scopes.index(currentscope) -def slice_kwargs(names, kwargs): - new_kwargs = {} - for name in names: - new_kwargs[name] = kwargs[name] - return new_kwargs - class FixtureLookupError(LookupError): """ could not return a requested Fixture (missing or invalid). """ def __init__(self, argname, request, msg=None):