Browse Source

mol-model: removed QueryContextLinkInfo.swap

David Sehnal 5 years ago
parent
commit
5d5af58bdf
1 changed files with 0 additions and 14 deletions
  1. 0 14
      src/mol-model/structure/query/context.ts

+ 0 - 14
src/mol-model/structure/query/context.ts

@@ -119,20 +119,6 @@ export class QueryContextLinkInfo<U extends Unit = Unit> {
     type: LinkType = LinkType.Flag.None;
     order: number = 0;
 
-    swap() {
-        const idxA = this.aIndex;
-        this.aIndex = this.bIndex;
-        this.bIndex = idxA;
-
-        const unitA = this.a.unit;
-        this.a.unit = this.b.unit;
-        this.b.unit = unitA;
-
-        const eA = this.a.element;
-        this.a.element = this.b.element;
-        this.b.element = eA;
-    }
-
     get length() {
         return StructureElement.Location.distance(this.a, this. b);
     }