Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.mylyn.gerrit.ui/src/org/eclipse/mylyn/internal/gerrit/ui/GerritReviewBehavior.java')
-rw-r--r--org.eclipse.mylyn.gerrit.ui/src/org/eclipse/mylyn/internal/gerrit/ui/GerritReviewBehavior.java3
1 files changed, 0 insertions, 3 deletions
diff --git a/org.eclipse.mylyn.gerrit.ui/src/org/eclipse/mylyn/internal/gerrit/ui/GerritReviewBehavior.java b/org.eclipse.mylyn.gerrit.ui/src/org/eclipse/mylyn/internal/gerrit/ui/GerritReviewBehavior.java
index 5fcdddca2..3659ab305 100644
--- a/org.eclipse.mylyn.gerrit.ui/src/org/eclipse/mylyn/internal/gerrit/ui/GerritReviewBehavior.java
+++ b/org.eclipse.mylyn.gerrit.ui/src/org/eclipse/mylyn/internal/gerrit/ui/GerritReviewBehavior.java
@@ -97,17 +97,14 @@ public class GerritReviewBehavior extends ReviewBehavior {
@Override
public IStatus discardComment(IReviewItem item, IComment comment, IProgressMonitor monitor) {
- short side = RIGHT_SIDE;
String id = item.getId();
if (id.startsWith(BASE)) {
// base revision
id = id.substring(BASE.length());
- side = LEFT_SIDE;
}
Patch.Key key = Patch.Key.parse(id);
for (ILocation location : comment.getLocations()) {
if (location instanceof ILineLocation) {
- ILineLocation lineLocation = (ILineLocation) location;
DiscardDraftRequest request = new DiscardDraftRequest(key, comment.getId());
request.setMessage(comment.getDescription());

Back to the top