Skip to content

Commit 7ee548b

Browse files
committed
drop unused variable
1 parent 78fb48a commit 7ee548b

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

pyplugins/apis/uprobes.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,16 +108,13 @@ def _analyze_signature(self, func):
108108
CTX_ENTER = 0
109109
CTX_TGID_PID = 1
110110

111-
has_varkw = False
112-
113111
# Temporary list of positionals to assign standard meanings to
114112
positional_candidates = []
115113
# Pre-identify parameter names to avoid double-injection
116114
param_names = {p.name for p in params}
117115

118116
for p in params:
119117
if p.kind == p.VAR_KEYWORD:
120-
has_varkw = True
121118
# ONLY inject if the context names aren't already explicitly handled
122119
if 'is_enter' not in param_names:
123120
kw_indices['is_enter'] = CTX_ENTER

0 commit comments

Comments
 (0)