[JGIT PATCH 8/9] Remove yet another legacy StGit utility function
- From
Shawn O. Pearce <spearce@spearce.org>
- Date
- Feb 12, 2009, 02:36 UTC
- Message-ID
- <1234406219-19547-9-git-send-email-spearce@spearce.org>
- In-Reply-To
- <1234406219-19547-8-git-send-email-spearce@spearce.org>
We have long since ripped out any StGit support from JGit or EGit. There is no current caller for this function, and it should have been removed much sooner. Take it out now anyway.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org> --- .../src/org/spearce/jgit/lib/Repository.java | 19 ------------------- 1 files changed, 0 insertions(+), 19 deletions(-)
diff --git a/org.spearce.jgit/src/org/spearce/jgit/lib/Repository.java b/org.spearce.jgit/src/org/spearce/jgit/lib/Repository.java index 96c62df..30bd4a3 100644 --- a/org.spearce.jgit/src/org/spearce/jgit/lib/Repository.java +++ b/org.spearce.jgit/src/org/spearce/jgit/lib/Repository.java @@ -878,25 +878,6 @@ public String toString() { } /** - * @return name of topmost Stacked Git patch. - * @throws IOException - */ - public String getPatch() throws IOException { - final File ptr = new File(getDirectory(),"patches/"+getBranch()+"/applied"); - final BufferedReader br = new BufferedReader(new FileReader(ptr)); - String last=null; - try { - String line; - while ((line=br.readLine())!=null) { - last = line; - } - } finally { - br.close(); - } - return last; - } - - /** * @return name of current branch * @throws IOException */
-- 1.6.2.rc0.204.gf6b427