Skip to content
This repository was archived by the owner on Sep 6, 2024. It is now read-only.

Commit

Permalink
remove dead code
Browse files Browse the repository at this point in the history
Former-commit-id: e138813ff1f8c1af79dfefced87e72c391c1ec3f
Former-commit-id: e41747e
  • Loading branch information
rgatkinson committed Jan 27, 2016
1 parent 88b3a69 commit a246618
Showing 1 changed file with 0 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -295,26 +295,6 @@ static Field getFieldByName(Class klass, String name)
return result;
}

static Field getFieldByIndex(Class klass, int index)
{
Field result = null;
try {
Class fieldClass = klass;

List<Field> fieldFields = getLocalDeclaredNonStaticFields(fieldClass, false);

result = fieldFields.get(index);

if (!result.isAccessible())
result.setAccessible(true);
}
catch (Exception ignored)
{
result = null;
}
return result;
}

static Comparator<Field> fieldComparator = new Comparator<Field>()
// A comparator that sorts fields according to their declaration order
{
Expand Down

0 comments on commit a246618

Please sign in to comment.