Browse Source

Remove the deprecated TestRepository.getClock() method

Gitles was the holdout and TestRepository.getClock() was removed via:
https://gerrit.googlesource.com/gitiles/+/f10481d8384d1695e6981b805c4e5e462e4b71ea

Change-Id: I90c0fc17be4891545b097a49763b0f0c202cc004
Signed-off-by: Terry Parker <tparker@google.com>
stable-4.5
Terry Parker 9 years ago
parent
commit
bd63a56da2
  1. 11
      org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java

11
org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java

@ -211,17 +211,6 @@ public class TestRepository<R extends Repository> {
return new Date(mockSystemReader.getCurrentTime());
}
/**
* @return current date.
*
* @deprecated Use {@link #getDate()} instead.
*/
@Deprecated
public Date getClock() {
// Remove once Gitiles and Gerrit are using the updated JGit.
return getDate();
}
/** @return timezone used for default identities. */
public TimeZone getTimeZone() {
return mockSystemReader.getTimeZone();

Loading…
Cancel
Save