-
Notifications
You must be signed in to change notification settings - Fork 519
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Delete never-used ks macros #1274
Comments
I think my python script is fine. Here's how you use it.
...wait ~10min...
|
Today, now that Uplift is complete. I ran a complete build with
|
Wow, that's a lot of cruft! |
Note-to-self; The following are used in less than 10 places:
Might be worth hunting those down. |
To worry about macros that are only ever used in translated content, let's discuss that in: #3063 |
What's the third one meant to mean? It shows |
Using the
BUILD_LOG_MACROS_USED
env var you can get a log of all ks macro calls. You can combine that log output with the listing ofkumascript/macros/*.ejs
to get the difference of what never appears in the log files. I.e. macros that are not used by any active content.Here's a nifty Python script you can use:
Equipped with this, we should be able to delete about 50
.ejs
macros that are never used.The text was updated successfully, but these errors were encountered: