8263438: Unused method AbstractMemberWriter.isInherited

Reviewed-by: prappo
This commit is contained in:
Hannes Wallnöfer 2021-05-17 14:19:57 +00:00
parent dd5a84c68c
commit d5a15f7420

View File

@ -294,20 +294,6 @@ public abstract class AbstractMemberWriter implements MemberSummaryWriter, Membe
return utils.getSimpleName(member);
}
/**
* Returns {@code true} if the given element is inherited
* by the class that is being documented.
*
* @param ped the element being checked
*
* @return {@code true} if inherited
*/
protected boolean isInherited(Element ped){
return (!utils.isPrivate(ped) &&
(!utils.isPackagePrivate(ped) ||
ped.getEnclosingElement().equals(ped.getEnclosingElement())));
}
/**
* Adds use information to the documentation tree.
*