From: Shawn O. Pearce Date: Sun, 23 Jan 2011 01:27:20 +0000 (-0800) Subject: Remove getObjectsDirectory, openPack from base API X-Git-Tag: v0.11.1~37 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fchanges%2F16%2F2316%2F2;p=jgit.git 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 --- 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 6575127548..c4d2d73bc5 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 abstract class Repository { 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 @@ public abstract class Repository { 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)