PY-17265 Remove wrong message in the dialog for making function top-level
authorMikhail Golubev <mikhail.golubev@jetbrains.com>
Tue, 18 Oct 2016 14:43:26 +0000 (17:43 +0300)
committerMikhail Golubev <mikhail.golubev@jetbrains.com>
Mon, 24 Oct 2016 21:03:49 +0000 (00:03 +0300)
python/src/com/jetbrains/python/refactoring/move/makeFunctionTopLevel/PyMakeFunctionTopLevelDialog.java

index c9240a4cf8ecf6a8e1048c5bb0ab81a7ff5453ab..68edd45712b01742837dd86fea403b0bef7def45 100644 (file)
@@ -42,9 +42,6 @@ public class PyMakeFunctionTopLevelDialog extends PyBaseMoveDialog {
       setTitle(PyBundle.message("refactoring.make.local.function.top.level.dialog.title"));
       myDescription.setText(PyBundle.message("refactoring.make.local.function.top.level.dialog.description", functionName));
     }
-    if (function.getContainingClass() != null) {
-      myDescription.setText("Make top-level function from method ");
-    }
     myExtraPanel.setVisible(false);
     init();
   }