WL#5498: Remove dead and unused source code

Status: In-Progress   —   Priority: High

Remove source code that has been dead or is unused currently (for some time).

Examples: unused variables, files, macros, etc.

Also, remove/rework obsolete string functions.