summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikita Sobolev <mail@sobolevn.me>2022-10-03 18:35:43 (GMT)
committerGitHub <noreply@github.com>2022-10-03 18:35:43 (GMT)
commite990c6af086e00dedc877d12b74c1ceedec511d1 (patch)
tree92557a794d15d3ff7fe36775e30db786f235b230
parent64fe34371722d90448e0d1a0c04e7ed106f5f70a (diff)
downloadcpython-e990c6af086e00dedc877d12b74c1ceedec511d1.zip
cpython-e990c6af086e00dedc877d12b74c1ceedec511d1.tar.gz
cpython-e990c6af086e00dedc877d12b74c1ceedec511d1.tar.bz2
gh-94808: `_PyLineTable_StartsLine` was not used (GH-96609)
-rw-r--r--Objects/codeobject.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/Objects/codeobject.c b/Objects/codeobject.c
index 72712f4..7d0d038 100644
--- a/Objects/codeobject.c
+++ b/Objects/codeobject.c
@@ -1011,33 +1011,6 @@ _PyLineTable_NextAddressRange(PyCodeAddressRange *range)
return 1;
}
-int
-_PyLineTable_StartsLine(PyCodeAddressRange *range)
-{
- if (range->ar_start <= 0) {
- return 0;
- }
- const uint8_t *ptr = range->opaque.lo_next;
- do {
- ptr--;
- } while (((*ptr) & 128) == 0);
- int code = ((*ptr)>> 3) & 15;
- switch(code) {
- case PY_CODE_LOCATION_INFO_LONG:
- return 0;
- case PY_CODE_LOCATION_INFO_NO_COLUMNS:
- case PY_CODE_LOCATION_INFO_NONE:
- return ptr[1] != 0;
- case PY_CODE_LOCATION_INFO_ONE_LINE0:
- return 0;
- case PY_CODE_LOCATION_INFO_ONE_LINE1:
- case PY_CODE_LOCATION_INFO_ONE_LINE2:
- return 1;
- default:
- return 0;
- }
-}
-
static int
emit_pair(PyObject **bytes, int *offset, int a, int b)
{