From 4c3f2849c7c8f1943990774c647b9f3cecb0b267 Mon Sep 17 00:00:00 2001 From: Tim Kennedy Date: Fri, 24 Jul 2026 21:14:49 -0500 Subject: [PATCH 1/3] Removed unneeded namespace --- TimVer/Views/AboutPage.xaml | 1 - 1 file changed, 1 deletion(-) diff --git a/TimVer/Views/AboutPage.xaml b/TimVer/Views/AboutPage.xaml index 1c19cde..9c04c5c 100644 --- a/TimVer/Views/AboutPage.xaml +++ b/TimVer/Views/AboutPage.xaml @@ -4,7 +4,6 @@ xmlns:config="clr-namespace:TimVer.Configuration" xmlns:convert="clr-namespace:TimVer.Converters" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" - xmlns:global="clr-namespace:System.Globalization;assembly=mscorlib" xmlns:helpers="clr-namespace:TimVer.Helpers" xmlns:local="clr-namespace:TimVer" xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes" From 94dd6afc26ad515f3d1440329e2f3c2264b0309d Mon Sep 17 00:00:00 2001 From: Tim Kennedy Date: Fri, 24 Jul 2026 21:15:55 -0500 Subject: [PATCH 2/3] Remove unused method --- TimVer/Helpers/PathHelpers.cs | 48 ----------------------------------- 1 file changed, 48 deletions(-) diff --git a/TimVer/Helpers/PathHelpers.cs b/TimVer/Helpers/PathHelpers.cs index cc15051..0ae1772 100644 --- a/TimVer/Helpers/PathHelpers.cs +++ b/TimVer/Helpers/PathHelpers.cs @@ -4,54 +4,6 @@ namespace TimVer.Helpers; internal static class PathHelpers { - - /// - /// Returns a condensed representation of a file system path by keeping the specified number of - /// leading and trailing path segments and replacing the middle portion with an ellipsis ("..."). - /// - /// The full path to condense. Segments are determined by . - /// Number of leading segments to keep (may be zero). - /// Number of trailing segments to keep (may be zero). - /// - /// Example: input "C:\a\b\c\d\e\f\g", leading=2, trailing=2 => "C:\a\...\f\g". - /// - /// - /// A condensed path string. If the path contains fewer than the sum of - /// and segments the original is returned. - /// - public static string GetCondensedPath(string path, int leading, int trailing) - { - if (string.IsNullOrEmpty(path)) - { - return path; - } - if (leading < 0 || trailing < 0) - { - return path; - } - - string[] parts = path.Split(Path.DirectorySeparatorChar); - if (parts.Length <= leading + trailing) - { - return path; - } - - StringBuilder sb = new(path.Length); - for (int i = 0; i < leading; i++) - { - sb.Append(parts[i]).Append(Path.DirectorySeparatorChar); - } - - sb.Append("...").Append(Path.DirectorySeparatorChar); - - for (int i = trailing; i > 0; i--) - { - sb.Append(parts[^i]).Append(Path.DirectorySeparatorChar); - } - - return sb.ToString().TrimEnd(Path.DirectorySeparatorChar); - } - /// /// If a path to a file includes the user profile name replace it with %USERPROFILE%. /// From a7af677936c77cc46500b94e588f21252929830f Mon Sep 17 00:00:00 2001 From: Tim Kennedy Date: Fri, 24 Jul 2026 21:18:30 -0500 Subject: [PATCH 3/3] Remove unneeded phrase --- TimVer/Helpers/TextFileViewer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TimVer/Helpers/TextFileViewer.cs b/TimVer/Helpers/TextFileViewer.cs index 9a7a124..aa86c67 100644 --- a/TimVer/Helpers/TextFileViewer.cs +++ b/TimVer/Helpers/TextFileViewer.cs @@ -29,7 +29,7 @@ public static void ViewTextFile(string textFile) p.StartInfo.UseShellExecute = true; p.StartInfo.ErrorDialog = false; _ = p.Start(); - _log.Debug($"Opening {fname} in default application"); + _log.Debug($"Opening {fname}"); } catch (Win32Exception ex) {