Skip to content

Commit 58eb4e0

Browse files
committed
Clean up
1 parent 6e292f0 commit 58eb4e0

1 file changed

Lines changed: 9 additions & 32 deletions

File tree

biojava-structure/src/main/java/org/biojava/nbio/structure/io/PDBFileParser.java

Lines changed: 9 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,11 @@ public class PDBFileParser {
108108

109109

110110

111-
// parsing options:
112-
113111
private static final Logger logger = LoggerFactory.getLogger(PDBFileParser.class);
112+
113+
// for printing
114+
private static final String NEWLINE = System.getProperty("line.separator");
115+
114116

115117
// required for parsing:
116118
private String pdbId; //the actual id of the entry
@@ -126,9 +128,7 @@ public class PDBFileParser {
126128
//(pdb_COMPOUND_handler for example)
127129
private boolean isLegacyFormat = false;
128130

129-
// for printing
130-
private static final String NEWLINE;
131-
131+
132132
// for re-creating the biological assembly
133133

134134
private PDBBioAssemblyParser bioAssemblyParser = null;
@@ -208,6 +208,8 @@ public class PDBFileParser {
208208

209209
private int atomCount;
210210

211+
// parsing options:
212+
211213
private int my_ATOM_CA_THRESHOLD ;
212214

213215
private int load_max_atoms;
@@ -217,11 +219,6 @@ public class PDBFileParser {
217219
/** flag to tell parser to only read Calpha coordinates **/
218220
private boolean parseCAonly;
219221

220-
static {
221-
222-
NEWLINE = System.getProperty("line.separator");
223-
224-
}
225222

226223
private FileParsingParameters params;
227224

@@ -257,23 +254,6 @@ public PDBFileParser() {
257254
linkRecords = new ArrayList<LinkRecord>();
258255
}
259256

260-
261-
262-
/**
263-
* Returns a time stamp.
264-
* @return a String representing the time stamp value
265-
*/
266-
protected String getTimeStamp(){
267-
268-
Calendar cal = Calendar.getInstance() ;
269-
// Get the components of the time
270-
int hour24 = cal.get(Calendar.HOUR_OF_DAY); // 0..23
271-
int min = cal.get(Calendar.MINUTE); // 0..59
272-
int sec = cal.get(Calendar.SECOND); // 0..59
273-
String s = "time: "+hour24+" "+min+" "+sec;
274-
return s ;
275-
}
276-
277257
/** initiate new resNum, either Hetatom, Nucleotide, or AminoAcid */
278258
private Group getNewGroup(String recordName,Character aminoCode1, String aminoCode3) {
279259

@@ -2576,16 +2556,13 @@ private BufferedReader getBufferedReader(InputStream inStream)
25762556
*/
25772557
public Structure parsePDBFile(InputStream inStream)
25782558
throws IOException
2579-
{
2559+
{
25802560

2581-
//System.out.println("preparing buffer");
25822561
BufferedReader buf = getBufferedReader(inStream);
25832562

2584-
//System.out.println("done");
2585-
25862563
return parsePDBFile(buf);
25872564

2588-
}
2565+
}
25892566

25902567
/**
25912568
* Parse a PDB file and return a datastructure implementing

0 commit comments

Comments
 (0)