Browse Source

mol-model: removed QueryContextLinkInfo.swap

David Sehnal 5 năm trước cách đây
mục cha
commit
5d5af58bdf

+ 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;
     type: LinkType = LinkType.Flag.None;
     order: number = 0;
     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() {
     get length() {
         return StructureElement.Location.distance(this.a, this. b);
         return StructureElement.Location.distance(this.a, this. b);
     }
     }