X Tutup
Skip to content

Commit c33627f

Browse files
committed
More cleanup
1 parent 743a9fd commit c33627f

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

biojava-structure/src/main/java/org/biojava/nbio/structure/StructureImpl.java

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,7 @@ public void setStructureIdentifier(StructureIdentifier structureIdentifier) {
243243
/** {@inheritDoc} */
244244
@Override
245245
public void addChain(Chain chain) {
246-
int modelnr = 0 ;
247-
addChain(chain,modelnr);
246+
addChain(chain, 0);
248247
}
249248

250249
/** {@inheritDoc} */
@@ -293,8 +292,7 @@ public void addModel(List<Chain> modelChains){
293292
/** {@inheritDoc} */
294293
@Override
295294
public void setChains(List<Chain> chains){
296-
297-
setModel(0,chains);
295+
setModel(0, chains);
298296
}
299297

300298
/** {@inheritDoc} */
@@ -359,7 +357,7 @@ public String toString(){
359357
.append(" authId:")
360358
.append(cha.getName()).append(" ");
361359

362-
if ( cha.getEntityInfo() != null){
360+
if (cha.getEntityInfo() != null){
363361
EntityInfo comp = cha.getEntityInfo();
364362
String molName = comp.getDescription();
365363
if ( molName != null){
@@ -394,22 +392,16 @@ public String toString(){
394392

395393
@Override
396394
public int size() {
397-
int modelnr = 0 ;
398-
399395
if (!models.isEmpty()) {
400-
return models.get(modelnr).getPolyChains().size();
401-
}
402-
else {
396+
return models.get(0).getPolyChains().size();
397+
} else {
403398
return 0 ;
404399
}
405-
406400
}
407401

408402
@Override
409403
public int size(int modelIdx) { return models.get(modelIdx).size(); }
410404

411-
// some NMR stuff :
412-
413405
@Override
414406
public int nrModels() {
415407
return models.size() ;

0 commit comments

Comments
 (0)
X Tutup