summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaspar De Groot2011-04-26 03:50:48 (EDT)
committerCaspar De Groot2011-04-26 03:50:48 (EDT)
commit18dcf4f2d32aeaa8b0f467ae1d7cbea96757bb19 (patch)
tree460e56013c3e711475ddfdf2cff87bd8e9141022
parent5734965522e4ea21f5e2957cf47076a794b03450 (diff)
downloadcdo-18dcf4f2d32aeaa8b0f467ae1d7cbea96757bb19.zip
cdo-18dcf4f2d32aeaa8b0f467ae1d7cbea96757bb19.tar.gz
cdo-18dcf4f2d32aeaa8b0f467ae1d7cbea96757bb19.tar.bz2
[Bug 338910] Useless code in CDOSessionImpl.processRefreshSessionResult
https://bugs.eclipse.org/bugs/show_bug.cgi?id=338910
-rw-r--r--plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/session/CDOSessionImpl.java8
1 files changed, 0 insertions, 8 deletions
diff --git a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/session/CDOSessionImpl.java b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/session/CDOSessionImpl.java
index 22e9e9f..ec1f5f6 100644
--- a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/session/CDOSessionImpl.java
+++ b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/session/CDOSessionImpl.java
@@ -754,7 +754,6 @@ public abstract class CDOSessionImpl extends Container<CDOView> implements Inter
List<InternalCDOView> branchViews, Map<CDOBranch, Map<CDOID, InternalCDORevision>> viewedRevisions)
{
Map<CDOID, InternalCDORevision> oldRevisions = viewedRevisions.get(branch);
- Map<CDOID, Pair<InternalCDORevision, InternalCDORevision>> newRevisions = null;
List<CDORevisionKey> changedObjects = new ArrayList<CDORevisionKey>();
for (InternalCDORevision newRevision : result.getChangedObjects(branch))
@@ -764,13 +763,6 @@ public abstract class CDOSessionImpl extends Container<CDOView> implements Inter
InternalCDORevision oldRevision = oldRevisions.get(newRevision.getID());
InternalCDORevisionDelta delta = newRevision.compare(oldRevision);
changedObjects.add(delta);
-
- if (newRevisions == null)
- {
- newRevisions = new HashMap<CDOID, Pair<InternalCDORevision, InternalCDORevision>>();
- }
-
- newRevisions.put(delta.getID(), new Pair<InternalCDORevision, InternalCDORevision>(oldRevision, newRevision));
}
List<CDOIDAndVersion> detachedObjects = result.getDetachedObjects(branch);