Issue #2081169 by rivimey, areke, smiro: Remove unused local variables from the link module.