codereport / jsource

J Language Source Code. Livestream links ⬇️
https://www.youtube.com/playlist?list=PLVFrD1dmDdvfVhYLU_iKkV67X9XqCJLWe
Other
38 stars 20 forks source link

Removed unused functions and few macros #95

Closed juntuu closed 3 years ago

juntuu commented 3 years ago

I turned on compiler warnings locally to find the unused functions (and used linker errors to find false positives). This should be relatively safe now, as there is not too much preprocessor conditional code.

In two cases the functions were defined with macro, which expanded to two functions at once (only one was used). In one of the cases I expanded the macro, but the other I added modified macros with "REFACTORME" in the name, and undefined the macros after use.

I guess this will also help a little towards #90.