remove updateMarker method

This commit is contained in:
Fabian Jakobs 2010-04-07 10:48:33 +02:00
commit b127e92c01
2 changed files with 2 additions and 12 deletions

View file

@ -505,10 +505,9 @@ Editor.prototype =
}
if (this.selection) {
this.renderer.updateMarker(this.selection, this.getSelectionRange());
} else {
this.selection = this.renderer.addMarker(this.getSelectionRange(), "selection");
this.renderer.removeMarker(this.selection);
}
this.selection = this.renderer.addMarker(this.getSelectionRange(), "selection");
},
selectUp : function() {

View file

@ -231,15 +231,6 @@ VirtualRenderer.prototype.removeMarker = function(markerId)
}
};
VirtualRenderer.prototype.updateMarker = function(markerId, range)
{
var marker = this.markers[markerId];
if (marker) {
marker.range = range;
this.draw();
}
};
VirtualRenderer.prototype.updateCursor = function(position)
{
this.cursorPos = {