doc: update docs to reflect recent 'unused' changes
@@ -202,12 +202,6 @@ staticcheck github.com/example/...</code></pre>
Include tests in the analysis.
</td>
</tr>
- <tr>
- <td>-unused.whole-program</td>
- <td>
- Run unused in whole program mode.
- </td>
- </tr>
<tr>
<td>-version</td>
<td>
@@ -365,12 +359,6 @@ regexp.Compile(".+")</code></pre>
For example, when checking 10 packages it makes no difference if GOMAXPROCS is set to 32 or 16, at most 10 packages can be processed in parallel.
</p>
-<p>
- Furthermore, a certain amount of type information per package needs to be retained until the end of the process,
- which means that overall memory usage grows with the number of checked packages.
- You can reduce this effect by disabling the U1000 and U1001 checks via the <code>-checks</code> command line flag (e.g. via <code>staticcheck -checks="inherit,-U1000,-U1001"</code>).
-</p>
-
<p>
Finally, you can trade execution time for memory usage by setting the <code>GOGC</code> environment variable to a value less than 100.
This will run more frequent garbage collection, potentially lowering peak memory usage, at the cost of spending more CPU.
