This is an automated email from the ASF dual-hosted git repository.

diru pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-whiteboard.git

commit ee96040ade23e9614c1425fb2b90c0f4a6acc845
Author: Dirk Rudolph <[email protected]>
AuthorDate: Thu Jun 24 17:49:52 2021 +0200

    remove unused code
---
 .../java/org/apache/sling/sitemap/impl/SitemapStorage.java   | 12 ------------
 1 file changed, 12 deletions(-)

diff --git 
a/sitemap/src/main/java/org/apache/sling/sitemap/impl/SitemapStorage.java 
b/sitemap/src/main/java/org/apache/sling/sitemap/impl/SitemapStorage.java
index da42c54..e3c4388 100644
--- a/sitemap/src/main/java/org/apache/sling/sitemap/impl/SitemapStorage.java
+++ b/sitemap/src/main/java/org/apache/sling/sitemap/impl/SitemapStorage.java
@@ -504,9 +504,6 @@ public class SitemapStorage implements Runnable {
      * @return
      */
     private static SitemapStorageInfo newSitemapStorageInfo(Resource child) {
-        if (!isValidSitemapFile(child)) {
-            throw new IllegalArgumentException("valid sitemap file expected");
-        }
         return new SitemapStorageInfo(
                 child.getPath(),
                 child.getName().substring(0, child.getName().lastIndexOf('.')),
@@ -516,13 +513,4 @@ public class SitemapStorage implements Runnable {
                 child.getValueMap().get(PN_SITEMAP_SIZE, 0),
                 child.getValueMap().get(PN_SITEMAP_ENTRIES, 0));
     }
-
-    private static boolean isInteger(String text) {
-        try {
-            Integer.parseUnsignedInt(text);
-            return true;
-        } catch (NumberFormatException ex) {
-            return false;
-        }
-    }
 }

Reply via email to