Core: Remove dead code

Change-Id: Ia8d85cb54c96fbca09331df6f5ac360100011dab
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
CppTools: Remove dead code

Change-Id: I89e544946ff06593cb16badfb39a04f9d22924ef
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>