perf python: Remove some unused macros (_PyUnicode_FromString(arg), etc)
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 12 Mar 2025 20:31:37 +0000 (17:31 -0300)
committerNamhyung Kim <namhyung@kernel.org>
Tue, 18 Mar 2025 23:08:14 +0000 (16:08 -0700)
commit1882625c9113a3cf775dd46695466c80b922991d
tree06af8911a47baa17fdb33cca30b8539b90a3257a
parent1376c195e8ad327bb9f2d32e0acc5ac39e7cb30a
perf python: Remove some unused macros (_PyUnicode_FromString(arg), etc)

When python2 support was removed in e7e9943c87d857da ("perf python:
Remove python 2 scripting support"), all use of the
_PyUnicode_FromString(arg), _PyUnicode_FromFormat(...), and
_PyLong_FromLong(arg) macros was removed as well, so remove it.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Reviewed-by: Ian Rogers <irogers@google.com>
Link: https://lore.kernel.org/r/20250312203141.285263-3-acme@kernel.org
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/util/python.c