Skip to content

Commit 8886537

Browse files
committed
Remove now-superfluous helper function
1 parent 1e54af3 commit 8886537

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

Python/symtable.c

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,6 @@ static int symtable_visit_keyword(struct symtable *st, keyword_ty);
195195
static int symtable_visit_slice(struct symtable *st, slice_ty);
196196
static int symtable_visit_params(struct symtable *st, asdl_seq *args);
197197
static int symtable_visit_argannotations(struct symtable *st, asdl_seq *args);
198-
static int symtable_implicit_arg(struct symtable *st, int pos);
199198
static int symtable_visit_annotations(struct symtable *st, stmt_ty s, arguments_ty, expr_ty);
200199
static int symtable_visit_withitem(struct symtable *st, withitem_ty item);
201200

@@ -1523,20 +1522,6 @@ symtable_visit_expr(struct symtable *st, expr_ty e)
15231522
VISIT_QUIT(st, 1);
15241523
}
15251524

1526-
static int
1527-
symtable_implicit_arg(struct symtable *st, int pos)
1528-
{
1529-
PyObject *id = PyUnicode_FromFormat(".%d", pos);
1530-
if (id == NULL)
1531-
return 0;
1532-
if (!symtable_add_def(st, id, DEF_PARAM)) {
1533-
Py_DECREF(id);
1534-
return 0;
1535-
}
1536-
Py_DECREF(id);
1537-
return 1;
1538-
}
1539-
15401525
static int
15411526
symtable_visit_params(struct symtable *st, asdl_seq *args)
15421527
{

0 commit comments

Comments
 (0)