Skip to content
Snippets Groups Projects
Commit d355e3b2 authored by Yannis Barlas's avatar Yannis Barlas
Browse files

comment out unnecessary functions from provider

parent c98bea37
No related branches found
No related tags found
No related merge requests found
......@@ -472,12 +472,6 @@ class TrackChangesProvider extends TOCProvider {
// // get all pieces of free text
// }
// prevent substance from running getBoundingRectangle,
// as we will unset the selection manually
getInfo () {
return { skipSelection: true }
}
isAnnotationFromTheSameUser (annotation) {
const annotationUser = this.getAnnotationUser(annotation)
const currentUser = this.getCurrentUser()
......@@ -560,12 +554,12 @@ class TrackChangesProvider extends TOCProvider {
*/
isAnnotationContainedWithinSelection (annotation, strict) {
const selection = this.getSelection()
const annotationSelection = annotation.getSelection()
return selection.contains(annotationSelection, strict)
}
// isAnnotationContainedWithinSelection (annotation, strict) {
// const selection = this.getSelection()
// const annotationSelection = annotation.getSelection()
//
// return selection.contains(annotationSelection, strict)
// }
isSelectionCollapsed () {
const selection = this.getSelection()
......@@ -605,17 +599,17 @@ class TrackChangesProvider extends TOCProvider {
surface.editorSession.setSelection(selection)
}
setSelectionPlusOne (direction) {
const selection = this.getSelection()
const surface = this.getSurface()
if (direction === 'left') selection.start.offset -= 1
if (direction === 'right') selection.end.offset += 1
surface.editorSession.setSelection(selection)
return selection
}
// setSelectionPlusOne (direction) {
// const selection = this.getSelection()
// const surface = this.getSurface()
//
// if (direction === 'left') selection.start.offset -= 1
// if (direction === 'right') selection.end.offset += 1
//
// surface.editorSession.setSelection(selection)
//
// return selection
// }
updateSelection (selection, startOffset, endOffset) {
const surface = this.getSurface()
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment