Skip to content

Commit 87881ce

Browse files
author
Vladimir Kotal
committed
cleanup unused code
1 parent b3f9943 commit 87881ce

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/history/MercurialHistoryParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public void processStream(InputStream input) throws IOException {
126126
} else if (s.startsWith(MercurialRepository.USER) && entry != null) {
127127
entry.setAuthor(s.substring(MercurialRepository.USER.length()).trim());
128128
} else if (s.startsWith(MercurialRepository.DATE) && entry != null) {
129-
Date date = new Date();
129+
Date date;
130130
try {
131131
date = df.parse(s.substring(MercurialRepository.DATE.length()).trim());
132132
} catch (ParseException pe) {

opengrok-indexer/src/main/java/org/opengrok/indexer/history/Repository.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ public Date parse(String source) throws ParseException {
552552
locale),
553553
ex1.getErrorOffset()
554554
);
555-
if (head == null || tail == null) {
555+
if (head == null) {
556556
head = tail = ex1;
557557
} else {
558558
tail.initCause(ex1);

0 commit comments

Comments
 (0)