Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Remove unused code.
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos A. Munoz committed Apr 28, 2014
1 parent ae6c0c4 commit d0ced07
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions zanata-war/src/main/java/org/zanata/action/CopyTransAction.java
Expand Up @@ -140,30 +140,4 @@ public void cancel() {
conversationScopeMessages.setMessage(FacesMessage.SEVERITY_INFO,
zanataMessages.getMessage("jsf.iteration.CopyTrans.Cancelled"));
}

public String getDocumentsProcessed() {
CopyTransTask.CopyTransTaskHandle handle =
copyTransManager
.getCopyTransProcessHandle(getProjectIteration());
if (handle != null) {
return String.valueOf(handle.getDocumentsProcessed());
}
return "";
}

public String getCopyTransEstimatedTimeLeft() {
CopyTransTask.CopyTransTaskHandle handle =
copyTransManager
.getCopyTransProcessHandle(getProjectIteration());
if (handle != null) {
Optional<Long> estimatedTimeRemaining =
handle.getEstimatedTimeRemaining();
if (estimatedTimeRemaining.isPresent()) {
return DateUtil
.getTimeRemainingDescription(estimatedTimeRemaining
.get());
}
}
return "";
}
}

2 comments on commit d0ced07

@alex-sl-eng
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is being used in messages.properties, jsf.iteration.CopyTrans.estimatedTimeRemaining and jsf.iteration.CopyTrans.processedDocuments

@carlosmunoz
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh, good catch. I'll revert this.

Please sign in to comment.