# Is there a way to easily identify useless import, export and using statements

**URL:** <https://discourse.julialang.org/t/is-there-a-way-to-easily-identify-useless-import-export-and-using-statements/87580>\
**Category:** General Usage\
**Created:** [September 21, 2022, 3:20pm UTC](https://discourse.julialang.org/t/is-there-a-way-to-easily-identify-useless-import-export-and-using-statements/87580 "2022-09-21T15:20:59Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![heliosdrm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heliosdrm/32/3851_2.png) [@heliosdrm](https://discourse.julialang.org/u/heliosdrm)\
**Post date:** [September 21, 2022, 3:27pm UTC](https://discourse.julialang.org/t/is-there-a-way-to-easily-identify-useless-import-export-and-using-statements/87580/2 "2022-09-21T15:27:11Z")

</div>

Related:

> [@Tool to tell if a package has unused dependencies or using unused packages](https://discourse.julialang.org/t/tool-to-tell-if-a-package-has-unused-dependencies-or-using-unused-packages/36254/11):
>
> Sorry to resurrect this old topic but I noted a corner case: Imagine that in MyPkg.jl I do a using Printf: @printf then julia\> isdefined(MyPkg,:Printf) false and the remove would incorrectly (at least to me) suggest to remove Printf. Any way to programmatically check for unused deps?

I don’t think that it is possible to detect “useless” `export`s, though. Exported symbols are meant to be used by “others”, not by the source.

---

_[View the full topic](https://discourse.julialang.org/t/is-there-a-way-to-easily-identify-useless-import-export-and-using-statements/87580)._
