mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
remove unused functions in pdfRenderer
This commit is contained in:
parent
c8012dc22c
commit
ed6eedd9e2
1 changed files with 0 additions and 16 deletions
|
@ -90,13 +90,6 @@ define [
|
||||||
setScale: (@scale) ->
|
setScale: (@scale) ->
|
||||||
@resetState()
|
@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) ->
|
triggerRenderQueue: (interval = @JOB_QUEUE_INTERVAL) ->
|
||||||
$timeout () =>
|
$timeout () =>
|
||||||
@processRenderQueue()
|
@processRenderQueue()
|
||||||
|
@ -117,15 +110,6 @@ define [
|
||||||
}
|
}
|
||||||
@triggerRenderQueue()
|
@triggerRenderQueue()
|
||||||
|
|
||||||
renderPage: (element, pagenum) ->
|
|
||||||
return if @shuttingDown
|
|
||||||
current = {
|
|
||||||
'element': element
|
|
||||||
'pagenum': pagenum
|
|
||||||
}
|
|
||||||
@renderQueue.push(current)
|
|
||||||
@triggerRenderQueue()
|
|
||||||
|
|
||||||
processRenderQueue: () ->
|
processRenderQueue: () ->
|
||||||
return if @shuttingDown
|
return if @shuttingDown
|
||||||
return if @jobs > 0
|
return if @jobs > 0
|
||||||
|
|
Loading…
Reference in a new issue