Commits

derigel  committed 2304b7b

Garbage removed

  • Participants
  • Parent commits a11c38c
  • Branches resharper8

Comments (0)

Files changed (1)

File ReSpeller/Actions/AddArbitraryWordHelper.cs

-using System;
-using System.Linq;
-using System.Windows.Forms;
-using JetBrains.Application;
-using JetBrains.Application.Interop.NativeHook;
 using JetBrains.Application.Settings;
-using JetBrains.CommonControls.Validation;
 using JetBrains.DataFlow;
-using JetBrains.UI.Application;
-using JetBrains.UI.CommonDialogs;
 using ReSpeller.SpellEngine;
 using ReSpeller.SpellEngine.Dictionaries;
 
       {
         definition.Terminate();
       }
-      return;
-
-      using (var promptWinForm = new PromptWinForm(null, "Add word to dictionary", "Word:", defaultWord,
-                                                             arg =>
-                                                               {
-                                                                 if (arg.Length == 0)
-                                                                   return "Word can not be empty";
-                                                                 if (arg.Any(c => !Char.IsLetter(c)))
-                                                                   return "Only letters are permitted";
-                                                                 return (string) null;
-                                                               },
-                                                             Shell.Instance.GetComponent<IWindowsHookManager>(),
-                                                             Shell.Instance.GetComponent<FormValidators>(),
-                                                             Shell.Instance.GetComponent<UIApplication>()
-                                                             ))
-      {
-        promptWinForm.FormBorderStyle = FormBorderStyle.FixedDialog;
-        if (promptWinForm.ShowDialog())
-        {
-          Shell.Instance.GetComponent<ISingleLanguageWordStorage>().AddWordToUserDict(promptWinForm.Value);
-        }
-      }
     }
   }
 }