US 12,093,686 B2
Code maintenance system
Stefan Pfeiffer, Heidelberg (DE)
Assigned to SAP SE, Walldorf (DE)
Filed by SAP SE, Walldorf (DE)
Filed on Sep. 26, 2022, as Appl. No. 17/952,671.
Prior Publication US 2024/0103853 A1, Mar. 28, 2024
Int. Cl. G06F 8/71 (2018.01); G06F 8/30 (2018.01); G06F 11/36 (2006.01)
CPC G06F 8/71 (2013.01) [G06F 8/30 (2013.01); G06F 11/3636 (2013.01)] 17 Claims
OG exemplary drawing
 
1. A system comprising:
a storage device storing a code artifact; and
a processor to execute processor-executable program code stored on the storage device to cause the system to:
identify the code artifact;
determine logical entities of the code artifact;
determine references between the logical entities of the code artifact;
based on the determined references, identify at least one non-referenced method of the code artifact, where the at least one non-referenced method is referenced by no logical entities of the code artifact;
identify at least one non-executed method of the at least one non-referenced method which was not executed by a production system, by searching a code execution trace for each of the at least one non-referenced method; and
automatically modify the code artifact to remove the at least one non-executed method of the at least one non-referenced method.