From ce463fde07971228dc8d45fc3faf2d366fa5e3a1 Mon Sep 17 00:00:00 2001 From: Philippe Noel Date: Tue, 9 Apr 2019 15:46:24 +0200 Subject: [PATCH] Remove function to test if atom is residue -> useless with the AtomTypes enum --- src/pdb/read_pdb.rs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/pdb/read_pdb.rs b/src/pdb/read_pdb.rs index 888441a..9069160 100644 --- a/src/pdb/read_pdb.rs +++ b/src/pdb/read_pdb.rs @@ -138,15 +138,4 @@ pub fn parse_pdb(pdb: &str, name: &str) -> Protein { } protein } -/// Test if the selected line is a residue -/// -fn is_protein_res(r: &str, lst: &[&str]) -> bool { - let r = r.to_uppercase(); - for res in lst { - if r == *res { - return true; - } - } - false -} -- 2.22.0