You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by Peter Donald <do...@apache.org> on 2001/10/18 04:31:41 UTC

[PATCH][Torque] Remove duplicate method Torque

Hi,

Heres a patch to remove a method getDefaultMap() that returns identical 
value to getDefaultDB() and is only used in the Torque class.

-- 
Cheers,

Pete

*-----------------------------------------------------------------------*
PROGRAM: n.  a magic spell cast over a computer allowing it to turn
one's input into error messages.  v.t.  to engage in a pastime similar
to banging one's head against a wall, but with fewer opportunities for 
reward.
*-----------------------------------------------------------------------*

Re: [PATCH][Torque] Remove duplicate method Torque

Posted by Daniel Rall <dl...@finemaltcoding.com>.
Committed to jakarta-turbine-torque, thanks Pete.

- Dan


Peter Donald <do...@apache.org> writes:

> Index: Torque.java
> ===================================================================
> RCS file: /home/cvspublic/jakarta-turbine-torque/src/java/org/apache/torque/Torque.java,v
> retrieving revision 1.17
> diff -u -r1.17 Torque.java
> --- Torque.java	2001/09/20 04:51:45	1.17
> +++ Torque.java	2001/10/18 02:27:17
> @@ -263,7 +263,7 @@
>      public static DatabaseMap getDatabaseMap()
>          throws TorqueException
>      {
> -        return getDatabaseMap(getDefaultMap());
> +        return getDatabaseMap(getDefaultDB());
>      }
>  
>      /**
> @@ -721,18 +721,6 @@
>       * Returns the name of the default database.
>       */
>      public static String getDefaultDB()
> -    {
> -        if (configuration == null)
> -        {
> -            return DEFAULT_NAME;
> -        }
> -        return configuration.getString(DATABASE_DEFAULT, DEFAULT_NAME);
> -    }
> -
> -    /**
> -     * Returns the name of the default database map.
> -     */
> -    public static String getDefaultMap()
>      {
>          if (configuration == null)
>          {

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org