From 559c4661c358a6210c411badf54d4c6a6648b213 Mon Sep 17 00:00:00 2001 From: "Shawn O. Pearce" Date: Sat, 22 Jan 2011 17:27:20 -0800 Subject: [PATCH] Remove getObjectsDirectory, openPack from base API These two methods are specific to the FileRepository implementation and should not be exposed as part of the base Repository API. Now that PackParser is generic and does not require these two methods to import a pack stream into a repostiory, it is safe to remove these and get them out of the public view. Change-Id: I8990004d08074657f467849dabfdaa7e6674e69a Signed-off-by: Shawn O. Pearce --- .../src/org/eclipse/jgit/lib/Repository.java | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java index 657512754..c4d2d73bc 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java @@ -180,11 +180,6 @@ public File getDirectory() { return gitDir; } - /** - * @return the directory containing the objects owned by this repository. - */ - public abstract File getObjectsDirectory(); - /** * @return the object database which stores this repository's data. */ @@ -700,19 +695,6 @@ protected void doClose() { getRefDatabase().close(); } - /** - * Add a single existing pack to the list of available pack files. - * - * @param pack - * path of the pack file to open. - * @param idx - * path of the corresponding index file. - * @throws IOException - * index file could not be opened, read, or is not recognized as - * a Git pack file index. - */ - public abstract void openPack(File pack, File idx) throws IOException; - public String toString() { String desc; if (getDirectory() != null)