diff --git a/STranslate/Util/Util.cs b/STranslate/Util/Util.cs index 94a08c1..0b8b8d6 100644 --- a/STranslate/Util/Util.cs +++ b/STranslate/Util/Util.cs @@ -236,20 +236,5 @@ namespace STranslate.Util return strA_Z; } #endregion - - public static bool Get_OSVersion() - { - try - { - OperatingSystem os = Environment.OSVersion; - Version ver = os.Version; - - return true; - } - catch (Exception e) - { - return false; - } - } } } diff --git a/STranslate/ViewModel/MainVM.cs b/STranslate/ViewModel/MainVM.cs index 8617ca8..98b3a5c 100644 --- a/STranslate/ViewModel/MainVM.cs +++ b/STranslate/ViewModel/MainVM.cs @@ -22,7 +22,6 @@ namespace STranslate.ViewModel { _Mainwin = (MainWindow)win; OpenMainWin(); - Util.Util.Get_OSVersion(); if (!ReadConfig()) {