Remove unnecessary code from Data

the code came from my former draft of the undo feature.