If you took out an excess contribution to a Roth

If you took out an excess contribution to a Roth before you filed for that year, is the problem solved once and for all? It's possible that this happened during the previous tax year, but likely older than that, but what's the answer either way? Fortunately, I doubt there were earnings from the excess contribution because I remember having them take the "correct" cash out, meaning it was cash added in addition to cash that was not yet invested at the time, in the Roth.

P.S If you made nearly a thousand for your earnings in cash and report that cash amount with your regaular earnings, but there's no digital footprint for it, will reporting it backfire in any way, besides possibly paying more in taxes?
Let me know how confident and qualified you are for your answers. Thanks!