res:dock:: fix remove behaviour.

delete rotate code by accident.