@@ -58,8 +58,6 @@ export class Point<T = string> implements Pick<Stateful, 'refresh'>, Printable {
5858 * @returns Returns 0 if the two points are equal, -1 if this point is less
5959 * than the other point, and 1 if this point is greater than the other
6060 * point.
61- *
62- * @todo Rename to `cmp`.
6361 */
6462 public cmp ( other : Point < T > ) : - 1 | 0 | 1 {
6563 const cmp = compare ( this . id , other . id ) ;
@@ -76,8 +74,6 @@ export class Point<T = string> implements Pick<Stateful, 'refresh'>, Printable {
7674 * @returns Returns 0 if the two points are equal, negative if this point is
7775 * less than the other point, and positive if this point is greater
7876 * than the other point.
79- *
80- * @todo Rename to `cmpSpatial`.
8177 */
8278 public cmpSpatial ( other : Point < T > ) : number {
8379 const thisId = this . id ;
@@ -135,15 +131,6 @@ export class Point<T = string> implements Pick<Stateful, 'refresh'>, Printable {
135131 return pos + this . id . time - chunk . id . time ;
136132 }
137133
138- private _pos : number = - 1 ;
139-
140- /** @todo Is this needed? */
141- public posCached ( ) : number {
142- if ( this . _pos >= 0 ) return this . _pos ;
143- const pos = ( this . _pos = this . pos ( ) ) ;
144- return pos ;
145- }
146-
147134 /**
148135 * @returns Returns the view position of the point, as if it is a caret in
149136 * the text pointing between characters.
0 commit comments