From 115e8e88b242b772f84856fd1a8b04c74f919e55 Mon Sep 17 00:00:00 2001 From: Bob Badour Date: Wed, 26 Jun 2019 11:19:08 -0700 Subject: Remove unused 3p tool missing license terms. The five-year-old version of owasp sanitizer used to sanitize html in emails included an old version of findbugs referenced from an unused Makefile. Since this may have missing license terms and is unused, deleting makes sense. Bug: 136097319 Test: packages/apps/Email/tests packages/apps/UnifiedEmail/tests pass. Change-Id: Id4388a10f59826e5b3fb7f830b30668388dda7be --- tools/findbugs/bin/deprecated/bugHistory | 75 ---------------------------- tools/findbugs/bin/deprecated/unionBugs | 78 ----------------------------- tools/findbugs/bin/deprecated/unionResults | 80 ------------------------------ tools/findbugs/bin/deprecated/updateBugs | 78 ----------------------------- 4 files changed, 311 deletions(-) delete mode 100755 tools/findbugs/bin/deprecated/bugHistory delete mode 100755 tools/findbugs/bin/deprecated/unionBugs delete mode 100755 tools/findbugs/bin/deprecated/unionResults delete mode 100755 tools/findbugs/bin/deprecated/updateBugs (limited to 'tools/findbugs/bin/deprecated') diff --git a/tools/findbugs/bin/deprecated/bugHistory b/tools/findbugs/bin/deprecated/bugHistory deleted file mode 100755 index 5f5599b..0000000 --- a/tools/findbugs/bin/deprecated/bugHistory +++ /dev/null @@ -1,75 +0,0 @@ -#! /bin/sh - -program="$0" - -# Follow symlinks until we get to the actual file. -while [ -h "$program" ]; do - link=`ls -ld "$program"` - link=`expr "$link" : '.*-> \(.*\)'` - if [ "`expr "$link" : '/.*'`" = 0 ]; then - # Relative - dir=`dirname "$program"` - program="$dir/$link" - else - # Absolute - program="$link" - fi -done - -# Assume findbugs home directory is the parent -# of the directory containing the script (which should -# normally be "$findbugs_home/bin"). -dir=`dirname "$program"` -findbugs_home="$dir/.." - -# Handle FHS-compliant installations (e.g., Fink) -if [ -d "$findbugs_home/share/findbugs" ]; then - findbugs_home="$findbugs_home/share/findbugs" -fi - -# Make absolute -findbugs_home=`cd "$findbugs_home" && pwd` - -fb_pathsep=':' - -# Handle cygwin, courtesy of Peter D. Stout -fb_osname=`uname` -if [ `expr "$fb_osname" : CYGWIN` -ne 0 ]; then - findbugs_home=`cygpath --mixed "$findbugs_home"` - fb_pathsep=';' -fi -# Handle MKS, courtesy of Kelly O'Hair -if [ "${fb_osname}" = "Windows_NT" ]; then - fb_pathsep=';' -fi - -if [ ! -d "$findbugs_home" ]; then - echo "The path $findbugs_home," - echo "which is where I think FindBugs is located," - echo "does not seem to be a directory." - exit 1 -fi - -# Choose default java binary -fb_javacmd=java -if [ ! -z "$JAVA_HOME" ] && [ -x "$JAVA_HOME/bin/java" ]; then - if [ `expr "$fb_osname" : CYGWIN` -ne 0 ]; then - fb_javacmd=`cygpath --mixed "$JAVA_HOME"`/bin/java - else - fb_javacmd="$JAVA_HOME/bin/java" - fi -fi - -fb_mainclass=edu.umd.cs.findbugs.workflow.BugHistory - -fb_javacmd=${fb_javacmd:-"java"} -fb_maxheap=${fb_maxheap:-"-Xmx768m"} -fb_appjar=${fb_appjar:-"$findbugs_home/lib/findbugs.jar"} -set -f -#echo command: \ -exec "$fb_javacmd" \ - -classpath "$fb_appjar$fb_pathsep$CLASSPATH" \ - -Dfindbugs.home="$findbugs_home"\ - $fb_maxheap $fb_jvmargs $fb_mainclass ${@:+"$@"} $fb_appargs - -# vim:ts=3 diff --git a/tools/findbugs/bin/deprecated/unionBugs b/tools/findbugs/bin/deprecated/unionBugs deleted file mode 100755 index 9da0b84..0000000 --- a/tools/findbugs/bin/deprecated/unionBugs +++ /dev/null @@ -1,78 +0,0 @@ -#! /bin/sh - -# Create the union of two results files, preserving -# annotations in both files in the result. - -program="$0" - -# Follow symlinks until we get to the actual file. -while [ -h "$program" ]; do - link=`ls -ld "$program"` - link=`expr "$link" : '.*-> \(.*\)'` - if [ "`expr "$link" : '/.*'`" = 0 ]; then - # Relative - dir=`dirname "$program"` - program="$dir/$link" - else - # Absolute - program="$link" - fi -done - -# Assume findbugs home directory is the parent -# of the directory containing the script (which should -# normally be "$findbugs_home/bin"). -dir=`dirname "$program"` -findbugs_home="$dir/.." - -# Handle FHS-compliant installations (e.g., Fink) -if [ -d "$findbugs_home/share/findbugs" ]; then - findbugs_home="$findbugs_home/share/findbugs" -fi - -# Make absolute -findbugs_home=`cd "$findbugs_home" && pwd` - -fb_pathsep=':' - -# Handle cygwin, courtesy of Peter D. Stout -fb_osname=`uname` -if [ `expr "$fb_osname" : CYGWIN` -ne 0 ]; then - findbugs_home=`cygpath --mixed "$findbugs_home"` - fb_pathsep=';' -fi -# Handle MKS, courtesy of Kelly O'Hair -if [ "${fb_osname}" = "Windows_NT" ]; then - fb_pathsep=';' -fi - -if [ ! -d "$findbugs_home" ]; then - echo "The path $findbugs_home," - echo "which is where I think FindBugs is located," - echo "does not seem to be a directory." - exit 1 -fi - -# Choose default java binary -fb_javacmd=java -if [ ! -z "$JAVA_HOME" ] && [ -x "$JAVA_HOME/bin/java" ]; then - if [ `expr "$fb_osname" : CYGWIN` -ne 0 ]; then - fb_javacmd=`cygpath --mixed "$JAVA_HOME"`/bin/java - else - fb_javacmd="$JAVA_HOME/bin/java" - fi -fi - -fb_mainclass=edu.umd.cs.findbugs.UnionResults - -fb_javacmd=${fb_javacmd:-"java"} -fb_maxheap=${fb_maxheap:-"-Xmx768m"} -fb_appjar=${fb_appjar:-"$findbugs_home/lib/findbugs.jar"} -set -f -#echo command: \ -exec "$fb_javacmd" \ - -classpath "$fb_appjar$fb_pathsep$CLASSPATH" \ - -Dfindbugs.home="$findbugs_home"\ - $fb_maxheap $fb_jvmargs $fb_mainclass ${@:+"$@"} $fb_appargs - -# vim:ts=3 diff --git a/tools/findbugs/bin/deprecated/unionResults b/tools/findbugs/bin/deprecated/unionResults deleted file mode 100755 index 01d2126..0000000 --- a/tools/findbugs/bin/deprecated/unionResults +++ /dev/null @@ -1,80 +0,0 @@ -#! /bin/sh - -# Deprecated - -# Create the union of two results files, preserving -# annotations in both files in the result. - -program="$0" - -# Follow symlinks until we get to the actual file. -while [ -h "$program" ]; do - link=`ls -ld "$program"` - link=`expr "$link" : '.*-> \(.*\)'` - if [ "`expr "$link" : '/.*'`" = 0 ]; then - # Relative - dir=`dirname "$program"` - program="$dir/$link" - else - # Absolute - program="$link" - fi -done - -# Assume findbugs home directory is the parent -# of the directory containing the script (which should -# normally be "$findbugs_home/bin"). -dir=`dirname "$program"` -findbugs_home="$dir/.." - -# Handle FHS-compliant installations (e.g., Fink) -if [ -d "$findbugs_home/share/findbugs" ]; then - findbugs_home="$findbugs_home/share/findbugs" -fi - -# Make absolute -findbugs_home=`cd "$findbugs_home" && pwd` - -fb_pathsep=':' - -# Handle cygwin, courtesy of Peter D. Stout -fb_osname=`uname` -if [ `expr "$fb_osname" : CYGWIN` -ne 0 ]; then - findbugs_home=`cygpath --mixed "$findbugs_home"` - fb_pathsep=';' -fi -# Handle MKS, courtesy of Kelly O'Hair -if [ "${fb_osname}" = "Windows_NT" ]; then - fb_pathsep=';' -fi - -if [ ! -d "$findbugs_home" ]; then - echo "The path $findbugs_home," - echo "which is where I think FindBugs is located," - echo "does not seem to be a directory." - exit 1 -fi - -# Choose default java binary -fb_javacmd=java -if [ ! -z "$JAVA_HOME" ] && [ -x "$JAVA_HOME/bin/java" ]; then - if [ `expr "$fb_osname" : CYGWIN` -ne 0 ]; then - fb_javacmd=`cygpath --mixed "$JAVA_HOME"`/bin/java - else - fb_javacmd="$JAVA_HOME/bin/java" - fi -fi - -fb_mainclass=edu.umd.cs.findbugs.workflow.UnionResults - -fb_javacmd=${fb_javacmd:-"java"} -fb_maxheap=${fb_maxheap:-"-Xmx768m"} -fb_appjar=${fb_appjar:-"$findbugs_home/lib/findbugs.jar"} -set -f -#echo command: \ -exec "$fb_javacmd" \ - -classpath "$fb_appjar$fb_pathsep$CLASSPATH" \ - -Dfindbugs.home="$findbugs_home"\ - $fb_maxheap $fb_jvmargs $fb_mainclass ${@:+"$@"} $fb_appargs - -# vim:ts=3 diff --git a/tools/findbugs/bin/deprecated/updateBugs b/tools/findbugs/bin/deprecated/updateBugs deleted file mode 100755 index 24ce26c..0000000 --- a/tools/findbugs/bin/deprecated/updateBugs +++ /dev/null @@ -1,78 +0,0 @@ -#! /bin/sh - -# Merge a historical bug collection and a bug collection, producing an updated -# historical bug collection - -program="$0" - -# Follow symlinks until we get to the actual file. -while [ -h "$program" ]; do - link=`ls -ld "$program"` - link=`expr "$link" : '.*-> \(.*\)'` - if [ "`expr "$link" : '/.*'`" = 0 ]; then - # Relative - dir=`dirname "$program"` - program="$dir/$link" - else - # Absolute - program="$link" - fi -done - -# Assume findbugs home directory is the parent -# of the directory containing the script (which should -# normally be "$findbugs_home/bin"). -dir=`dirname "$program"` -findbugs_home="$dir/.." - -# Handle FHS-compliant installations (e.g., Fink) -if [ -d "$findbugs_home/share/findbugs" ]; then - findbugs_home="$findbugs_home/share/findbugs" -fi - -# Make absolute -findbugs_home=`cd "$findbugs_home" && pwd` - -fb_pathsep=':' - -# Handle cygwin, courtesy of Peter D. Stout -fb_osname=`uname` -if [ `expr "$fb_osname" : CYGWIN` -ne 0 ]; then - findbugs_home=`cygpath --mixed "$findbugs_home"` - fb_pathsep=';' -fi -# Handle MKS, courtesy of Kelly O'Hair -if [ "${fb_osname}" = "Windows_NT" ]; then - fb_pathsep=';' -fi - -if [ ! -d "$findbugs_home" ]; then - echo "The path $findbugs_home," - echo "which is where I think FindBugs is located," - echo "does not seem to be a directory." - exit 1 -fi - -# Choose default java binary -fb_javacmd=java -if [ ! -z "$JAVA_HOME" ] && [ -x "$JAVA_HOME/bin/java" ]; then - if [ `expr "$fb_osname" : CYGWIN` -ne 0 ]; then - fb_javacmd=`cygpath --mixed "$JAVA_HOME"`/bin/java - else - fb_javacmd="$JAVA_HOME/bin/java" - fi -fi - -fb_mainclass=edu.umd.cs.findbugs.workflow.Update - -fb_javacmd=${fb_javacmd:-"java"} -fb_maxheap=${fb_maxheap:-"-Xmx768m"} -fb_appjar=${fb_appjar:-"$findbugs_home/lib/findbugs.jar"} -set -f -#echo command: \ -exec "$fb_javacmd" \ - -classpath "$fb_appjar$fb_pathsep$CLASSPATH" \ - -Dfindbugs.home="$findbugs_home"\ - $fb_maxheap $fb_jvmargs $fb_mainclass ${@:+"$@"} $fb_appargs - -# vim:ts=3 -- cgit v1.2.3