[kgr] Remove unnecessary lines of code

This commit removes unused, unneeded or unreachable lines of code.