git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [JGIT PATCH 1/1] Remove dead cacheTree related code from GitProjectData
@ 2008-08-05  2:22 Shawn O. Pearce
  0 siblings, 0 replies; only message in thread
From: Shawn O. Pearce @ 2008-08-05  2:22 UTC (permalink / raw)
  To: Robin Rosenberg, Marek Zawirski; +Cc: git

We have long since purged the idea of the cache tree from egit, so we
do not need this commented out block of code anymore.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
---
 .../spearce/egit/core/project/GitProjectData.java  |   35 --------------------
 1 files changed, 0 insertions(+), 35 deletions(-)

diff --git a/org.spearce.egit.core/src/org/spearce/egit/core/project/GitProjectData.java b/org.spearce.egit.core/src/org/spearce/egit/core/project/GitProjectData.java
index f092669..8754bd1 100644
--- a/org.spearce.egit.core/src/org/spearce/egit/core/project/GitProjectData.java
+++ b/org.spearce.egit.core/src/org/spearce/egit/core/project/GitProjectData.java
@@ -415,31 +415,6 @@ public class GitProjectData {
 						} else if (s == null) {
 							return true;
 						}
-
-//						final Tree cacheTree = m.getCacheTree();
-//						if (cacheTree != null) {
-//							try {
-//								synchronized (cacheTree) {
-//									final TreeEntry e;
-//									if (res.getType() == IResource.FILE)
-//										e = cacheTree.findBlobMember(s);
-//									else
-//										e = cacheTree.findTreeMember(s);
-//									if (e instanceof FileTreeEntry) {
-//										trace("modified " + r + " -> "
-//												+ e.getFullName());
-//										e.setModified();
-//										affectedMappings.add(m);
-//									}
-//								}
-//							} catch (IOException ioe) {
-//								throw Activator
-//										.error(
-//												CoreText.GitProjectData_lazyResolveFailed,
-//												ioe);
-//							}
-//							return true;
-//						}
 					}
 					return false;
 				}
@@ -451,16 +426,6 @@ public class GitProjectData {
 			detachFromWorkspace();
 			Activator.logError(CoreText.GitProjectData_notifyChangedFailed, ce);
 		}
-
-//		try {
-//			final Iterator i = affectedMappings.iterator();
-//			while (i.hasNext()) {
-//				((RepositoryMapping) i.next()).recomputeMerge();
-//			}
-//		} catch (IOException ioe) {
-//			Activator
-//					.logError(CoreText.GitProjectData_notifyChangedFailed, ioe);
-//		}
 	}
 
 	private File propertyFile() {
-- 
1.6.0.rc1.250.g9b5e2

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2008-08-05  2:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-05  2:22 [JGIT PATCH 1/1] Remove dead cacheTree related code from GitProjectData Shawn O. Pearce

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).