directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r576076 - /directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/ConnectionManager.java
Date Sun, 16 Sep 2007 11:41:36 GMT
Author: seelmann
Date: Sun Sep 16 04:41:35 2007
New Revision: 576076

URL: http://svn.apache.org/viewvc?rev=576076&view=rev
Log:
Removed unused code.

Modified:
    directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/ConnectionManager.java

Modified: directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/ConnectionManager.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/ConnectionManager.java?rev=576076&r1=576075&r2=576076&view=diff
==============================================================================
--- directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/ConnectionManager.java
(original)
+++ directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/ConnectionManager.java
Sun Sep 16 04:41:35 2007
@@ -70,38 +70,6 @@
     public static final String getConnectionStoreFileName()
     {
         String filename = ConnectionCorePlugin.getDefault().getStateLocation().append( "connections.xml"
).toOSString(); //$NON-NLS-1$
-        //        File file = new File( filename );
-        //        if ( !file.exists() )
-        //        {
-        //            // try to convert old connections.xml:
-        //            // 1st search it in current workspace with the old ldapstudio plugin
ID
-        //            // 2nd search it in old .ldapstudio workspace with the old ldapstudio
plugin ID
-        //            String[] oldFilenames = new String[2];
-        //            oldFilenames[0] = filename.replace( "org.apache.directory.studio.ldapbrowser.core",
-        //                "org.apache.directory.ldapstudio.browser.core" );
-        //            oldFilenames[1] = oldFilenames[0].replace( ".ApacheDirectoryStudio",
-        //                ".ldapstudio" );
-        //            for ( int i = 0; i < oldFilenames.length; i++ )
-        //            {
-        //                File oldFile = new File( oldFilenames[i] );
-        //                if ( oldFile.exists() )
-        //                {
-        //                    try
-        //                    {
-        //                        String oldContent = FileUtils.readFileToString( oldFile,
"UTF-8" );
-        //                        String newContent = oldContent.replace( "org.apache.directory.ldapstudio.browser.core",
-        //                            "org.apache.directory.studio.ldapbrowser.core" );
-        //                        FileUtils.writeStringToFile( file, newContent, "UTF-8"
);
-        //                        break;
-        //                    }
-        //                    catch ( IOException e )
-        //                    {
-        //                        e.printStackTrace();
-        //                    }
-        //                }
-        //            }
-        //        }
-
         return filename;
     }
 



Mime
View raw message