diff --git a/plugins/git4idea/src/git4idea/branch/GitDeleteTagOperation.java b/plugins/git4idea/src/git4idea/branch/GitDeleteTagOperation.java
index 9ce7d47e2b65..7d2eb632e817 100644
--- a/plugins/git4idea/src/git4idea/branch/GitDeleteTagOperation.java
+++ b/plugins/git4idea/src/git4idea/branch/GitDeleteTagOperation.java
@@ -81,17 +81,6 @@ class GitDeleteTagOperation extends GitBranchOperation {
myNotifier.notify(notification);
}
- @Override
- protected void rollback() {
- GitCompoundResult result = doRollback();
- if (result.totalSuccess()) {
- myNotifier.notifySuccess("Rollback Successful", "Restored tag " + myTagName);
- }
- else {
- myNotifier.notifyError("Error during rollback of tag deletion", result.getErrorOutputWithReposIndication());
- }
- }
-
@NotNull
private GitCompoundResult doRollback() {
GitCompoundResult result = new GitCompoundResult(myProject);
@@ -103,25 +92,6 @@ class GitDeleteTagOperation extends GitBranchOperation {
return result;
}
- @NotNull
- public String getSuccessMessage() {
- return String.format("Deleted tag %s", formatTagName(myTagName));
- }
-
- @NotNull
- @Override
- protected String getRollbackProposal() {
- return "However tag deletion has succeeded for the following " + repositories() + ":
" +
- successfulRepositoriesJoined() +
- "
You may rollback (recreate " + myTagName + " in these roots) not to let tags diverge.";
- }
-
- @NotNull
- @Override
- protected String getOperationName() {
- return "tag deletion";
- }
-
@NotNull
private static String formatTagName(@NotNull String name) {
return "" + name + "";
@@ -145,4 +115,26 @@ class GitDeleteTagOperation extends GitBranchOperation {
myNotifier.notifyError("Couldn't Restore " + formatTagName(myTagName), result.getErrorOutputWithReposIndication());
}
}
+
+ @Override
+ protected void rollback() {
+ throw new UnsupportedOperationException();
+ }
+
+ @NotNull
+ @Override
+ protected String getRollbackProposal() {
+ throw new UnsupportedOperationException();
+ }
+
+ @NotNull
+ @Override
+ protected String getOperationName() {
+ throw new UnsupportedOperationException();
+ }
+
+ @NotNull
+ public String getSuccessMessage() {
+ throw new UnsupportedOperationException();
+ }
}