From be16837c8c33e0ebbdddb9f068d44d24af9c4693 Mon Sep 17 00:00:00 2001
From: yakomaxa <47655565+yakomaxa@users.noreply.github.com>
Date: Sun, 21 Aug 2022 15:51:41 +0900
Subject: [PATCH] Remove unused lines

---
 src/mol-script/transpilers/rasmol/parser.ts | 21 +--------------------
 1 file changed, 1 insertion(+), 20 deletions(-)

diff --git a/src/mol-script/transpilers/rasmol/parser.ts b/src/mol-script/transpilers/rasmol/parser.ts
index 605d46710..ef685d673 100644
--- a/src/mol-script/transpilers/rasmol/parser.ts
+++ b/src/mol-script/transpilers/rasmol/parser.ts
@@ -38,26 +38,7 @@ function atomSelectionQuery2(x: any) {
     for (const k in x) {
         const ps = macroproperties[k];
         if (!ps) {
-	    const [resno, inscode, chainname, atomname, altloc] = x[1];
-	    const tests: AtomGroupArgs = {};
-
-	    if (chainname) {
-                // should be configurable, there is an option in Jmol to use auth or label
-                tests['chain-test'] = B.core.rel.eq([B.ammp('auth_asym_id'), chainname]);
-	    }
-
-	    const resProps = [];
-	    if (resno) resProps.push(B.core.rel.eq([B.ammp('auth_seq_id'), resno]));
-	    if (inscode) resProps.push(B.core.rel.eq([B.ammp('pdbx_PDB_ins_code'), inscode]));
-	    if (resProps.length) tests['residue-test'] = h.andExpr(resProps);
-
-	    const atomProps = [];
-	    if (atomname) atomProps.push(B.core.rel.eq([B.ammp('auth_atom_id'), atomname]));
-	    if (altloc) atomProps.push(B.core.rel.eq([B.ammp('label_alt_id'), altloc]));
-	    if (atomProps.length) tests['atom-test'] = h.andExpr(atomProps);
-
-	    return B.struct.generator.atomGroups(tests);
-            //            throw new Error(`property '${k}' not supported, value '${x[k]}'`);
+            throw new Error(`property '${k}' not supported, value '${x[k]}'`);
         }
         if (x[k] === null) continue;
         if (!props[ps.level]) props[ps.level] = [];
-- 
GitLab