svn commit: r14577 - trunk/src/argouml-app/src/org/argouml/persistence/ModelMemberFilePersister.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: tfmorris
Date: 2008-05-01 15:33:36-0700
New Revision: 14577

Modified:
   trunk/src/argouml-app/src/org/argouml/persistence/ModelMemberFilePersister.java

Log:
Remove unused method which introduces unwanted dependencies

Modified: trunk/src/argouml-app/src/org/argouml/persistence/ModelMemberFilePersister.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/persistence/ModelMemberFilePersister.java?view=diff&rev=14577&p1=trunk/src/argouml-app/src/org/argouml/persistence/ModelMemberFilePersister.java&p2=trunk/src/argouml-app/src/org/argouml/persistence/ModelMemberFilePersister.java&r1=14576&r2=14577
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/persistence/ModelMemberFilePersister.java	(original)
+++ trunk/src/argouml-app/src/org/argouml/persistence/ModelMemberFilePersister.java	2008-05-01 15:33:36-0700
@@ -1,5 +1,5 @@
 // $Id$
-// Copyright (c) 1996-2007 The Regents of the University of California. All
+// Copyright (c) 1996-2008 The Regents of the University of California. All
 // Rights Reserved. Permission to use, copy, modify, and distribute this
 // software and its documentation without fee, and without a written
 // agreement is hereby granted, provided that the above copyright notice
@@ -51,12 +51,9 @@
 import org.argouml.model.XmiReader;
 import org.argouml.model.XmiWriter;
 import org.argouml.uml.ProjectMemberModel;
-import org.argouml.uml.cognitive.ProjectMemberTodoList;
 import org.argouml.uml.diagram.ArgoDiagram;
 import org.argouml.uml.diagram.DiagramFactory;
-import org.argouml.uml.diagram.ProjectMemberDiagram;
 import org.argouml.uml.diagram.DiagramFactory.DiagramType;
-import org.argouml.kernel.ProfileConfiguration;
 import org.xml.sax.InputSource;
 
 /**
@@ -228,28 +225,6 @@
 
     }
     
-    /**
-     * Get a MemberFilePersister based on a given ProjectMember.
-     *
-     * @param pm the project member
-     * @return the persister
-     */
-    protected MemberFilePersister getMemberFilePersister(ProjectMember pm) {
-        MemberFilePersister persister = null;
-        if (pm instanceof ProjectMemberDiagram) {
-            persister = 
-                PersistenceManager.getInstance()
-                    .getDiagramMemberFilePersister();
-            // TODO: Cyclic dependency with PersistenceManager, use instead
-//          persister = new DiagramMemberFilePersister();
-        } else if (pm instanceof ProfileConfiguration) {
-            persister = new ProfileConfigurationFilePersister();
-        } else if (pm instanceof ProjectMemberTodoList) {
-            persister = new TodoListMemberFilePersister();
-        }
-        return persister;
-    }
-
     public void parse(String label, String xmiExtensionString) {
         LOG.info("Parsing an extension for " + label);
     }
@@ -259,8 +234,6 @@
 
     private Collection elementsRead;
 
-    ////////////////////////////////////////////////////////////////
-    // accessors
 
     /**
      * @return the current model
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.