added test case for removing elements while iterating (commit: dae6e50)
removed some code with help of the unused code detector pluginI hope the tool works and I did not break anything (commit: f857429)