     @nextMarkerId = 1
     @outstandingSaveCount = 0
     @loadCount = 0
-
-    @maxUndoEntries = params?.maxUndoEntries ? @defaultMaxUndoEntries
-    # @setHistoryProvider(new DefaultHistoryProvider())
-    @setHistoryProvider(new HistoryShim())
 
     @setEncoding(params?.encoding)
     @setPreferredLineEnding(params?.preferredLineEnding)

    @buffer = new NativeTextBuffer(text)
    @debouncedEmitDidStopChangingEvent = debounce(@emitDidStopChangingEvent.bind(this), @stoppedChangingDelay)
    @textDecorationLayers = new Set()
    @nextMarkerLayerId = 0
    @nextDisplayLayerId = 0
    @defaultMarkerLayer = new MarkerLayer(this, String(@nextMarkerLayerId++))

{spliceArray, newlineRegex, normalizePatchChanges, regexIsSingleLine, extentForText, debounce} = require './helpers'
{traversal} = require './point-helpers'
Grim = require 'grim'

class HistoryShim
  constructor: () ->
