remove unused functions in pdfRenderer

This commit is contained in:
Brian 2015-01-20 20:36:43 +00:00
parent c8012dc22c
commit ed6eedd9e2

View file

@ -90,13 +90,6 @@ define [
setScale: (@scale) ->
@resetState()
pause: (element, pagenum) ->
return if @complete[pagenum]
return if @shuttingDown
@renderQueue = @renderQueue.filter (q) ->
q.pagenum != pagenum
@spinner.stop(element.canvas)
triggerRenderQueue: (interval = @JOB_QUEUE_INTERVAL) ->
$timeout () =>
@processRenderQueue()
@ -117,15 +110,6 @@ define [
}
@triggerRenderQueue()
renderPage: (element, pagenum) ->
return if @shuttingDown
current = {
'element': element
'pagenum': pagenum
}
@renderQueue.push(current)
@triggerRenderQueue()
processRenderQueue: () ->
return if @shuttingDown
return if @jobs > 0