Revert "Fixed #6230 (SymbolDatabase: Wrong function() is set for token)"

This reverts commit 685fce6b917b3d071707b5b914d8c45ed8385725.