]> granicus.if.org Git - handbrake/commitdiff
WinGui: Remove some unnecessary version / bitness calls in the Services library.
authorsr55 <sr55.hb@outlook.com>
Tue, 8 May 2018 20:03:21 +0000 (21:03 +0100)
committersr55 <sr55.hb@outlook.com>
Tue, 8 May 2018 20:03:21 +0000 (21:03 +0100)
win/CS/HandBrake.ApplicationServices/Utilities/LanguageUtilities.cs
win/CS/HandBrake.ApplicationServices/Utilities/VersionHelper.cs
win/CS/HandBrakeWPF/Utilities/GeneralUtilities.cs
win/CS/HandBrakeWPF/ViewModels/AboutViewModel.cs
win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs

index d8d16b87a406c20c0736d52b75a50c3aa2dd0a09..d8a3c08548ec2cae5a372c3932b491def27e8d30 100644 (file)
@@ -10,7 +10,6 @@
 namespace HandBrake.ApplicationServices.Utilities\r
 {\r
     using System.Collections.Generic;\r
-    using System.Collections.Specialized;\r
     using System.Linq;\r
 \r
     /// <summary>\r
index 3d7943d83a29f7f05c1418642f5f45fcd000ad2e..cc5c903ef76f853cb0d89f0eb8364cfc7f3a9841 100644 (file)
@@ -49,27 +49,5 @@ namespace HandBrake.ApplicationServices.Utilities
             // 01 = Unofficial Builds.  00 = Official Tagged Releases.\r
             return instance.Build.ToString().EndsWith("01");\r
         }\r
-\r
-        /// <summary>\r
-        /// The get platform bitness.\r
-        /// </summary>\r
-        /// <returns>\r
-        /// The <see cref="bool"/>.\r
-        /// </returns>\r
-        public static string GetPlatformBitnessVersion()\r
-        {\r
-            return System.Environment.Is64BitProcess ? "64bit" : "32bit";\r
-        }\r
-\r
-        /// <summary>\r
-        /// Is a 64 bit app.\r
-        /// </summary>\r
-        /// <returns>\r
-        /// The <see cref="string"/>.\r
-        /// </returns>\r
-        public static bool Is64Bit()\r
-        {\r
-            return System.Environment.Is64BitProcess;\r
-        }\r
     }\r
 }\r
index 325eacaa313b5a05a2fcd0c9ebb05b5212331263..bed4a01bebe66143a2eacc7cda5815339068c39f 100644 (file)
@@ -107,8 +107,8 @@ namespace HandBrakeWPF.Utilities
                 gpuBuilder.Append("GPU Information is unavailable");
             }
 
-            logHeader.AppendLine(string.Format("HandBrake {0} - {1}", VersionHelper.GetVersion(), VersionHelper.GetPlatformBitnessVersion()));
-            logHeader.AppendLine(string.Format("OS: {0} - {1}", Environment.OSVersion, Environment.Is64BitOperatingSystem ? "64bit" : "32bit"));
+            logHeader.AppendLine(string.Format("HandBrake {0}", VersionHelper.GetVersion()));
+            logHeader.AppendLine(string.Format("OS: {0}", Environment.OSVersion));
             logHeader.AppendLine(string.Format("CPU: {0}", SystemInfo.GetCpuCount));
             logHeader.AppendLine(string.Format("Ram: {0} MB, ", SystemInfo.TotalPhysicalMemory));
             logHeader.AppendLine(string.Format("GPU Information:{0}{1}", Environment.NewLine, gpuBuilder.ToString().TrimEnd()));
index cb9cef3e7c188eee4fe8a68d3e3fb6cadf632b36..8096441b2da4c62cc290c96ec73de46afcf53bfc 100644 (file)
@@ -33,7 +33,7 @@ namespace HandBrakeWPF.ViewModels
         {\r
             get\r
             {\r
-                return string.Format("{0} - {1}", VersionHelper.GetVersion(), VersionHelper.GetPlatformBitnessVersion());\r
+                return string.Format("{0}", VersionHelper.GetVersion());\r
             }\r
         }\r
 \r
index 19209101f0983f83ff1341914070356cee5c5e56..c8fb9580a4da22909a49a23f5695396acd00456f 100644 (file)
@@ -1075,7 +1075,7 @@ namespace HandBrakeWPF.ViewModels
         {\r
             get\r
             {\r
-                return string.Format("{0} - {1}", VersionHelper.GetVersion(), VersionHelper.GetPlatformBitnessVersion());\r
+                return string.Format("{0}", VersionHelper.GetVersion());\r
             }\r
         }\r
 \r