Skip to content

Commit

Permalink
Removed unneeded conditions from ResRefChecker
Browse files Browse the repository at this point in the history
  • Loading branch information
Argent77 committed Mar 15, 2014
1 parent 7515d4e commit e06ab5b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/infinity/check/ResRefChecker.java
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,7 @@ private void search(ResourceEntry entry, AbstractStruct struct)
if (o instanceof SpawnResourceRef) {
SpawnResourceRef ref = (SpawnResourceRef)o;
String resourceName = ref.getResourceName();
if (resourceName.equalsIgnoreCase("None") ||
(resourceName.length() > 5 && resourceName.substring(0, 5).equalsIgnoreCase("None.")))
if (resourceName.equalsIgnoreCase("None"))
;
else if (extraValues != null && extraValues.contains(ref.getResName()))
;
Expand All @@ -180,8 +179,7 @@ else if (!ref.isLegalEntry(ResourceFactory.getInstance().getResourceEntry(resour
else if (o instanceof ResourceRef) {
ResourceRef ref = (ResourceRef)o;
String resourceName = ref.getResourceName();
if (resourceName.equalsIgnoreCase("None") ||
(resourceName.length() > 5 && resourceName.substring(0, 5).equalsIgnoreCase("None.")))
if (resourceName.equalsIgnoreCase("None"))
;
else if (struct instanceof CreResource && resourceName.substring(0, 3).equalsIgnoreCase("rnd"))
;
Expand Down

0 comments on commit e06ab5b

Please sign in to comment.