MCPcopy Create free account
hub / github.com/CheckPointSW/Karta / removeXref

Method removeXref

src/function_context.py:51–58  ·  view source on GitHub ↗

Remove an xref from the function (the caller was probably found irrelevant for our search). Args: xref (CodeContext): code context that calls (xrefs) our function

(self, xref)

Source from the content-addressed store, hash-verified

49 self.xrefs.add(xref)
50
51 def removeXref(self, xref):
52 """Remove an xref from the function (the caller was probably found irrelevant for our search).
53
54 Args:
55 xref (CodeContext): code context that calls (xrefs) our function
56 """
57 if xref in self.xrefs:
58 self.xrefs.remove(xref)
59
60 def used(self):
61 """Check if our external function is still used by active functions.

Callers 1

disableMethod · 0.80

Calls 1

removeMethod · 0.80

Tested by

no test coverage detected