{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,2,1]],"date-time":"2026-02-01T18:52:49Z","timestamp":1769971969217,"version":"3.49.0"},"reference-count":36,"publisher":"Association for Computing Machinery (ACM)","issue":"1","license":[{"start":{"date-parts":[[2020,1,30]],"date-time":"2020-01-30T00:00:00Z","timestamp":1580342400000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/www.acm.org\/publications\/policies\/copyright_policy#Background"}],"funder":[{"DOI":"10.13039\/501100002347","name":"Bundesministerium f\u00fcr Bildung und Forschung","doi-asserted-by":"crossref","award":["01IS18012A"],"award-info":[{"award-number":["01IS18012A"]}],"id":[{"id":"10.13039\/501100002347","id-type":"DOI","asserted-by":"crossref"}]}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["ACM Trans. Softw. Eng. Methodol."],"published-print":{"date-parts":[[2020,1,31]]},"abstract":"<jats:p>Grown software systems often contain code that is not necessary anymore. Such unnecessary code wastes resources during development and maintenance, for example, when preparing code for migration or certification. Running a profiler may reveal code that is not used in production, but it is often time-consuming to obtain representative data in this way.<\/jats:p>\n          <jats:p>We investigate to what extent a static analysis approach, which is based on code stability and code centrality, is able to identify unnecessary code and whether its recommendations are relevant in practice. To study the feasibility and usefulness of our approach, we conducted a study involving 14 open-source and closed-source software systems. As there is no perfect oracle for unnecessary code, we compared recommendations for unnecessary code with historical cleanups, runtime usage data, and feedback from 25 developers of five software projects. Our study shows that recommendations generated from stability and centrality information point to unnecessary code that cannot be identified by dead code detectors. Developers confirmed that 34% of recommendations were indeed unnecessary and deleted 20% of the recommendations shortly after our interviews. Overall, our results suggest that static analysis can provide quick feedback on unnecessary code and is useful in practice.<\/jats:p>","DOI":"10.1145\/3368267","type":"journal-article","created":{"date-parts":[[2020,1,30]],"date-time":"2020-01-30T22:27:53Z","timestamp":1580423273000},"page":"1-23","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":14,"title":["Is Static Analysis Able to Identify Unnecessary Source Code?"],"prefix":"10.1145","volume":"29","author":[{"ORCID":"https:\/\/orcid.org\/0000-0002-3248-3401","authenticated-orcid":false,"given":"Roman","family":"Haas","sequence":"first","affiliation":[{"name":"CQSE GmbH, Munich, Germany"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Rainer","family":"Niedermayr","sequence":"additional","affiliation":[{"name":"University of Stuttgart, CQSE GmbH, Germany"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Tobias","family":"Roehm","sequence":"additional","affiliation":[{"name":"CQSE GmbH, Stuttgart, Germany"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-3687-2233","authenticated-orcid":false,"given":"Sven","family":"Apel","sequence":"additional","affiliation":[{"name":"Saarland University, Saarbr\u00fccken, Germany"}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"320","published-online":{"date-parts":[[2020,1,30]]},"reference":[{"key":"e_1_2_1_1_1","volume-title":"Proceedings of the International Symposium on Empirical Software Engineering and Measurement. IEEE, 1--10","author":"Ahmed I."},{"key":"e_1_2_1_2_1","doi-asserted-by":"publisher","DOI":"10.1007\/s10664-012-9214-z"},{"key":"e_1_2_1_3_1","doi-asserted-by":"publisher","DOI":"10.1109\/SACI.2015.7208254"},{"key":"e_1_2_1_4_1","volume-title":"Proceedings of the International Conference on Software Engineering. ACM, 247--250","author":"Deissenboeck F."},{"key":"e_1_2_1_5_1","volume-title":"Detection of Refactorings. Bachelor\u2019s thesis","author":"Dreier F.","year":"2019"},{"key":"e_1_2_1_6_1","volume-title":"Proceedings of the International Conference on Software Maintenance and Evolution. IEEE, 446--450","author":"Eder S."},{"key":"e_1_2_1_7_1","volume-title":"Proceedings of the International Conference on Software Engineering. IEEE\/ACM, 1102--1111","author":"Eder S."},{"key":"e_1_2_1_8_1","volume-title":"Proceedings of the Joint Meeting of the European Software Engineering Conference and the ACM SIGSOFT Symposium on the Foundations of Software Engineering. ACM, 474--484","author":"Eichberg M."},{"key":"e_1_2_1_9_1","volume-title":"Proceedings of the International Working Conference on Source Code Analysis and Manipulation. IEEE, 116--125","author":"Fard A. M."},{"key":"e_1_2_1_10_1","volume-title":"Unused Code Detection in IntelliJ IDEA 2016","author":"Gee T.","year":"2016"},{"key":"e_1_2_1_11_1","volume-title":"Identification of Unnecessary Source Code. Master\u2019s thesis","author":"Haas R."},{"key":"e_1_2_1_12_1","volume-title":"Proceedings of the International Conference on Software Engineering. ACM, 592--595","author":"Heinemann L."},{"key":"e_1_2_1_13_1","volume-title":"Retrieved","author":"Spieler J.","year":"2019"},{"key":"e_1_2_1_14_1","volume-title":"Recommender Systems: An Introduction","author":"Jannach D.","year":"2011"},{"key":"e_1_2_1_15_1","volume-title":"Proceedings of the Annual Computer Software and Applications Conference. IEEE, 12--21","author":"Jiang Y."},{"key":"e_1_2_1_16_1","volume-title":"Proceedings of the International Conference on Software Engineering. IEEE, 485--495","author":"Juergens E."},{"key":"e_1_2_1_17_1","volume-title":"Proceedings of the International Conference on Program Comprehension. IEEE, 171--180","author":"Juergens E."},{"key":"e_1_2_1_18_1","doi-asserted-by":"publisher","DOI":"10.1109\/SCAM.2008.14"},{"key":"e_1_2_1_19_1","doi-asserted-by":"publisher","DOI":"10.1145\/1985404.1985410"},{"key":"e_1_2_1_20_1","doi-asserted-by":"publisher","DOI":"10.5555\/7261"},{"key":"e_1_2_1_21_1","volume-title":"Handbook of Graph Theory","author":"Maurer S. B."},{"key":"e_1_2_1_22_1","volume-title":"Proceedings of the Annual Symposium on Applied Computing. ACM, 1227--1234","author":"Mondal M."},{"key":"e_1_2_1_23_1","volume-title":"Proceedings of the International Conference on Software Engineering. ACM, 181--190","author":"Moser R."},{"key":"e_1_2_1_24_1","volume-title":"Proceedings of the International Conference on Software Maintenance. IEEE, 24--31","author":"Munson J. C."},{"key":"e_1_2_1_25_1","doi-asserted-by":"publisher","DOI":"10.1109\/ICSE.1994.296790"},{"key":"e_1_2_1_26_1","doi-asserted-by":"crossref","unstructured":"N. Redini R. Wang A. Machiry Y. Shoshitaishvili G. Vigna and C. Kruegel. 2019. BinTrimmer: Towards static binary debloating through abstract interpretation. In Detection of Intrusions and Malware and Vulnerability Assessment Roberto Perdisci Cl\u00e9mentine Maurice Giorgio Giacinto and Magnus Almgren (Eds.). Springer 482--501.  N. Redini R. Wang A. Machiry Y. Shoshitaishvili G. Vigna and C. Kruegel. 2019. BinTrimmer: Towards static binary debloating through abstract interpretation. In Detection of Intrusions and Malware and Vulnerability Assessment Roberto Perdisci Cl\u00e9mentine Maurice Giorgio Giacinto and Magnus Almgren (Eds.). Springer 482--501.","DOI":"10.1007\/978-3-030-22038-9_23"},{"key":"e_1_2_1_27_1","doi-asserted-by":"crossref","unstructured":"M. P. Robillard W. Maalej R. J. Walker and T. Zimmermann (Eds.). 2014. Recommendation Systems in Software Engineering. Springer.  M. P. Robillard W. Maalej R. J. Walker and T. Zimmermann (Eds.). 2014. Recommendation Systems in Software Engineering. Springer.","DOI":"10.1007\/978-3-642-45135-5"},{"key":"e_1_2_1_28_1","doi-asserted-by":"publisher","DOI":"10.1007\/s10664-008-9102-8"},{"key":"e_1_2_1_29_1","doi-asserted-by":"publisher","DOI":"10.1109\/SEAA.2014.67"},{"key":"e_1_2_1_30_1","volume-title":"Proceedings of the International Conference on Automated Software Engineering. ACM, 329--339","author":"Sharif H."},{"key":"e_1_2_1_31_1","volume-title":"Proceedings of the International Conference on Software Engineering. IEEE, 9--19","author":"Siegmund J."},{"key":"e_1_2_1_32_1","volume-title":"Proceedings of the Working Conference on Reverse Engineering. IEEE, 93--102","author":"Steidl D."},{"key":"e_1_2_1_33_1","unstructured":"F. Streitel D. Steidl and E. J\u00fcrgens. 2014. Dead code detection on class level. Softwaretechnik-Trends 34 2 (2014).  F. Streitel D. Steidl and E. J\u00fcrgens. 2014. Dead code detection on class level. Softwaretechnik-Trends 34 2 (2014)."},{"key":"e_1_2_1_34_1","volume-title":"Retrieved","year":"2019"},{"key":"e_1_2_1_35_1","volume-title":"Proceedings of the Australian Conference on Software Engineering. IEEE, 239--247","author":"Yang H. Y."},{"key":"e_1_2_1_36_1","doi-asserted-by":"publisher","DOI":"10.5555\/1464378.1464380"}],"container-title":["ACM Transactions on Software Engineering and Methodology"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3368267","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3368267","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,17]],"date-time":"2025-06-17T22:02:05Z","timestamp":1750197725000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3368267"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2020,1,30]]},"references-count":36,"journal-issue":{"issue":"1","published-print":{"date-parts":[[2020,1,31]]}},"alternative-id":["10.1145\/3368267"],"URL":"https:\/\/doi.org\/10.1145\/3368267","relation":{},"ISSN":["1049-331X","1557-7392"],"issn-type":[{"value":"1049-331X","type":"print"},{"value":"1557-7392","type":"electronic"}],"subject":[],"published":{"date-parts":[[2020,1,30]]},"assertion":[{"value":"2019-03-01","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2019-10-01","order":1,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2020-01-30","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}