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%.
///
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)
{
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"