Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Macguire2002-06-01 03:02:37 +0000
committerKevin Macguire2002-06-01 03:02:37 +0000
commita569fb45c3743fd2431de9395867eae9f3df436b (patch)
treeb0fc089aff44ef06db8ce93fb5253a5856fd404f
parent13d8498a5bad5cbbf451420fffe40a8da12e6eb5 (diff)
downloadeclipse.platform.team-a569fb45c3743fd2431de9395867eae9f3df436b.tar.gz
eclipse.platform.team-a569fb45c3743fd2431de9395867eae9f3df436b.tar.xz
eclipse.platform.team-a569fb45c3743fd2431de9395867eae9f3df436b.zip
18552
-rw-r--r--bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/target/ResourceState.java11
1 files changed, 4 insertions, 7 deletions
diff --git a/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/target/ResourceState.java b/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/target/ResourceState.java
index aad0047cb..f881d9b43 100644
--- a/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/target/ResourceState.java
+++ b/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/target/ResourceState.java
@@ -468,13 +468,10 @@ public abstract class ResourceState {
final public void removeState() throws TeamException {
try {
- // Check first to avoid an exception if there's no sync info and the resource doesn't exist
- if (SynchronizedTargetProvider.getSynchronizer().getSyncInfo(stateKey, localResource) != null) {
- SynchronizedTargetProvider.getSynchronizer().flushSyncInfo(
- stateKey,
- localResource,
- IResource.DEPTH_INFINITE);
- }
+ SynchronizedTargetProvider.getSynchronizer().flushSyncInfo(
+ stateKey,
+ localResource,
+ IResource.DEPTH_INFINITE);
} catch (CoreException e) {
throw TeamPlugin.wrapException(e);
}

Back to the top