Remove dead code from DetachedElement.

This code was moved to DetachedVertex/Edge for better readability.
Inadvertantly committed a bad test.