Author: dklco
Date: Wed Oct 30 15:48:51 2013
New Revision: 1537142
URL: http://svn.apache.org/r1537142
Log:
Removing duplicate methods from broken patch
Modified:
sling/trunk/bundles/scripting/jsp-taglib/src/main/java/org/apache/sling/scripting/jsp/taglib/SlingFunctions.java
Modified:
sling/trunk/bundles/scripting/jsp-taglib/src/main/java/org/apache/sling/scripting/jsp/taglib/SlingFunctions.java
URL:
http://svn.apache.org/viewvc/sling/trunk/bundles/scripting/jsp-taglib/src/main/java/org/apache/sling/scripting/jsp/taglib/SlingFunctions.java?rev=1537142&r1=1537141&r2=1537142&view=diff
==============================================================================
---
sling/trunk/bundles/scripting/jsp-taglib/src/main/java/org/apache/sling/scripting/jsp/taglib/SlingFunctions.java
(original)
+++
sling/trunk/bundles/scripting/jsp-taglib/src/main/java/org/apache/sling/scripting/jsp/taglib/SlingFunctions.java
Wed Oct 30 15:48:51 2013
@@ -170,29 +170,6 @@ public class SlingFunctions {
return resource != null ? resource.listChildren().hasNext() :
false;
}
- /**
- * Method for checking whether or not a resource has child resources.
- *
- * @param resource
- * the resource to check for child resources
- * @return true if the resource has child resources, false otherwise
- * @since 2.2.2
- */
- public static final boolean hasChildren(Resource resource) {
- return resource != null ? resource.listChildren().hasNext() :
false;
- }
-
- /**
- * Method for checking whether or not a resource has child resources.
- *
- * @param resource
- * the resource to check for child resources
- * @return true if the resource has child resources, false otherwise
- * @since 2.2.2
- */
- public static final boolean hasChildren(Resource resource) {
- return resource != null ? resource.listChildren().hasNext() :
false;
- }
/**
* Method for allowing the invocation of the Sling Resource listChildren
@@ -230,4 +207,4 @@ public class SlingFunctions {
return Thread.currentThread().getContextClassLoader()
.loadClass(className);
}
-}
+}
\ No newline at end of file