Remove static Resources.isContainedIn API

This commit is contained in:
Joakim Erdfelt 2022-08-03 06:59:17 -05:00
parent b4d526796e
commit 6ce295ce7a
No known key found for this signature in database
GPG Key ID: 2D0E1FB8FE4B68B4
3 changed files with 2 additions and 15 deletions

View File

@ -418,19 +418,6 @@ public abstract class Resource implements ResourceFactory
return newResource(url);
}
/**
* Return true if the Resource r is contained in the Resource containingResource, either because
* containingResource is a folder or a jar file or any form of resource capable of containing other resources.
*
* @param r the contained resource
* @param containingResource the containing resource
* @return true if the Resource is contained, false otherwise
*/
public static boolean isContainedIn(Resource r, Resource containingResource)
{
return r.isContainedIn(containingResource);
}
/**
* Return the Path corresponding to this resource.
*

View File

@ -405,7 +405,7 @@ public class MetaData
{
for (Resource r : resources)
{
if (Resource.isContainedIn(resource, r))
if (resource.isContainedIn(r))
{
enclosingResource = r;
break;

View File

@ -405,7 +405,7 @@ public class MetaData
{
for (Resource r : resources)
{
if (Resource.isContainedIn(resource, r))
if (resource.isContainedIn(r))
{
enclosingResource = r;
break;