From 98d1fb8d9c322b468480c489e2f45c86e571a410 Mon Sep 17 00:00:00 2001
From: Jeremy Landis <jeremylandis@hotmail.com>
Date: Sun, 20 Oct 2024 02:30:04 -0400
Subject: [PATCH] Remove scripts as deprecated and not known to be used.

---
 .../org/codehaus/mojo/spotbugs/SourceFileIndexer.groovy       | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/src/main/groovy/org/codehaus/mojo/spotbugs/SourceFileIndexer.groovy b/src/main/groovy/org/codehaus/mojo/spotbugs/SourceFileIndexer.groovy
index d059becc..e22e7f74 100644
--- a/src/main/groovy/org/codehaus/mojo/spotbugs/SourceFileIndexer.groovy
+++ b/src/main/groovy/org/codehaus/mojo/spotbugs/SourceFileIndexer.groovy
@@ -58,10 +58,6 @@ class SourceFileIndexer {
             scanDirectory(new File(sourceRoot), allSourceFiles, basePath)
         }
 
-        for (String sourceRoot in session.getCurrentProject().getScriptSourceRoots()) {
-            scanDirectory(new File(sourceRoot), allSourceFiles, basePath)
-        }
-
         //While not perfect, add the following paths will add basic support for Kotlin and Groovy
         scanDirectory(new File(session.getCurrentProject().getBasedir(),"src/main/webapp"), allSourceFiles, basePath)
         scanDirectory(new File(session.getCurrentProject().getBasedir(),"src/main/groovy"), allSourceFiles, basePath)