remove unused code from old implementation of drag and drop