From 2c8ad0296802d85d5a879dbf621d37cbe47a601b Mon Sep 17 00:00:00 2001 From: "rogan.dawes" Date: Tue, 10 Jul 2007 11:56:18 +0000 Subject: [PATCH] Remove unused method git-svn-id: http://webgoat.googlecode.com/svn/trunk@151 4033779f-a91e-0410-96ef-6bf7bf53c507 --- .../GoatHillsFinancial/GoatHillsFinancial.java | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/GoatHillsFinancial/GoatHillsFinancial.java b/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/GoatHillsFinancial/GoatHillsFinancial.java index 1fbb60366..eccc4aa14 100755 --- a/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/GoatHillsFinancial/GoatHillsFinancial.java +++ b/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/GoatHillsFinancial/GoatHillsFinancial.java @@ -1,7 +1,5 @@ package org.owasp.webgoat.lessons.GoatHillsFinancial; -import java.sql.Connection; -import java.sql.SQLException; import java.util.ArrayList; import java.util.Hashtable; import java.util.List; @@ -13,7 +11,6 @@ import org.apache.ecs.html.A; import org.apache.ecs.html.IMG; import org.owasp.webgoat.lessons.LessonAction; import org.owasp.webgoat.lessons.LessonAdapter; -import org.owasp.webgoat.session.DatabaseUtilities; import org.owasp.webgoat.session.ParameterNotFoundException; import org.owasp.webgoat.session.UnauthenticatedException; import org.owasp.webgoat.session.UnauthorizedException; @@ -121,23 +118,8 @@ public class GoatHillsFinancial extends LessonAdapter private final static Integer DEFAULT_RANKING = new Integer(125); - private static Connection connection = null; - private Map lessonFunctions = new Hashtable(); - - public static synchronized Connection getConnection(WebSession s) - throws SQLException, ClassNotFoundException - { - if (connection == null) - { - connection = DatabaseUtilities.makeConnection(s); - } - - return connection; - } - - public GoatHillsFinancial() { String myClassName = parseClassName(this.getClass().getName());