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 <spearce@spearce.org>
This commit is contained in:
Shawn O. Pearce 2011-01-22 17:27:20 -08:00
parent cc983454c0
commit 559c4661c3
1 changed files with 0 additions and 18 deletions

View File

@ -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)