core: removed some ununsed var warnings.