# Good tool to find dead code?

**URL:** <https://discuss.ocaml.org/t/good-tool-to-find-dead-code/2497>\
**Category:** Ecosystem\
**Created:** [August 29, 2018, 8:44pm UTC](https://discuss.ocaml.org/t/good-tool-to-find-dead-code/2497 "2018-08-29T20:44:30Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![perry](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/perry/32/518_2.png) [@perry](https://discuss.ocaml.org/u/perry)\
**Post date:** [August 29, 2018, 8:44pm UTC](https://discuss.ocaml.org/t/good-tool-to-find-dead-code/2497/1 "2018-08-29T20:44:30Z")

</div>

I’m cleaning up an older piece of OCaml code as I work on it. The author included a huge personal library (basically their own giant stdlib++) and it isn’t obvious what parts of it are and aren’t relevant to the code I’m actually using.

Are there any good tools for figuring out what code is and isn’t live in a program?

---

_[View the full topic](https://discuss.ocaml.org/t/good-tool-to-find-dead-code/2497)._
