From b7465b8fe58181ed563f4eef1eee5cb547ec6986 Mon Sep 17 00:00:00 2001 From: Chris Aniszczyk Date: Tue, 31 Aug 2010 11:55:27 -0500 Subject: [PATCH] Remove deprecated PersonIdent constructor Change-Id: I3831de1b6df25a52df30d367f0216573e6ee6b53 Signed-off-by: Chris Aniszczyk --- .../src/org/eclipse/jgit/lib/PersonIdent.java | 24 ------------------- 1 file changed, 24 deletions(-) diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/PersonIdent.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/PersonIdent.java index 5361c0f69..38c693883 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/PersonIdent.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/PersonIdent.java @@ -45,14 +45,11 @@ package org.eclipse.jgit.lib; -import java.text.MessageFormat; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Locale; import java.util.TimeZone; -import org.eclipse.jgit.JGitText; -import org.eclipse.jgit.util.RawParseUtils; import org.eclipse.jgit.util.SystemReader; /** @@ -190,27 +187,6 @@ public PersonIdent(final PersonIdent pi, final long aWhen, final int aTZ) { tzOffset = aTZ; } - /** - * Construct a PersonIdent from a string with full name, email, time time - * zone string. The input string must be valid. - * - * @param in - * a Git internal format author/committer string. - * - * @deprecated Use {@link RawParseUtils#parsePersonIdent(String)} instead. - */ - public PersonIdent(final String in) { - final PersonIdent self = RawParseUtils.parsePersonIdent(in); - if (self == null) - throw new IllegalArgumentException(MessageFormat.format( - JGitText.get().malformedpersonIdentString, in)); - - this.name = self.name; - this.emailAddress = self.emailAddress; - this.when = self.when; - this.tzOffset = self.tzOffset; - } - /** * @return Name of person */