Will the Unused by not removed functions and variables Cost more GPU memory?

will the Unused by not removed functions and variables Cost more GPU memory?
i know it will consume more GPU-memory in CUDA context, how about it when using OpenGL ES on Android? Thanks!

Given the glsl tag on your post, I assuming you mean unused GLSL functions and variables.

It’s going to depend on the GLSL shader compiler built into your graphics driver. It’s probably going to throw away any code and state that isn’t used to drive a shader output. There’s a GPU perf incentive for it to do so. But AFAIK there’s no GLSL spec requirement for it to do so.