How tom change generator frequency

I searched for frequencyChange in your code, there are two instances, one is commented out, the other as the function

void frequencyChange() //void somefunc()

If you're not calling the function, how will it be executed?