Skip to content

Commit 88427d4

Browse files
committed
delete dead code
1 parent 70732e4 commit 88427d4

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

pyperformance/_benchmark_metadata.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,6 @@ def _resolve(project, tool, filename):
194194
if target is None:
195195
target = field
196196
if field == 'url':
197-
_repo = project.get('urls', {}).get('repository')
198197
raise NotImplementedError
199198
elif not resolved.get(target):
200199
value = project.get(field)

pyperformance/_pyproject_toml.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,6 @@ def _check_file_or_text(table, rootdir, requirefiles, extra=None):
125125
raise ValueError('"file" and "text" are mutually exclusive')
126126
kind = 'file' if requirefiles else None
127127
_check_relfile(table['file'], rootdir, kind)
128-
else:
129-
_text = table['text']
130-
# XXX Validate it?
131128

132129

133130
def _normalize_project(data, rootdir, name, requirefiles, **_ignored):

pyperformance/tests/test_commands.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,13 @@ def div():
102102
print()
103103

104104
def expect_success(*args):
105-
_text = self.run_pyperformance(
105+
self.run_pyperformance(
106106
*args,
107107
capture=None,
108108
)
109109

110110
def expect_failure(*args):
111-
_text = self.run_pyperformance(
111+
self.run_pyperformance(
112112
*args,
113113
capture=None,
114114
exitcode=1,
@@ -148,7 +148,7 @@ def test_run_and_show(self):
148148
# --debug-single-value: benchmark results don't matter, we only
149149
# check that running benchmarks don't fail.
150150
# XXX Capture and check the output.
151-
_text = self.run_pyperformance(
151+
self.run_pyperformance(
152152
'run',
153153
'-b', 'all',
154154
'--debug-single-value',

0 commit comments

Comments
 (0)