diff --git a/Duplicati/Library/Utility/FilterGroups.cs b/Duplicati/Library/Utility/FilterGroups.cs
index 07cbacfd8..27daa239f 100644
--- a/Duplicati/Library/Utility/FilterGroups.cs
+++ b/Duplicati/Library/Utility/FilterGroups.cs
@@ -605,18 +605,6 @@ namespace Duplicati.Library.Utility
return filter.Replace(System.IO.Path.AltDirectorySeparatorChar, System.IO.Path.DirectorySeparatorChar);
}
- ///
- /// Creates a Regex filter
- ///
- /// Filter text
- /// Regex filter
- private static string CreateRegexFilter(string filter)
- {
- // Create a filter with the given name.
- // However, in order to match paths correctly, the directory separators need to be normalized to match the system default.
- return "[" + filter.Replace(FilterGroups.RegexEscapedAltDirectorySeparatorChar, FilterGroups.RegexEscapedDirectorySeparatorChar) + "]";
- }
-
///
/// Gets a list of exclude paths from the MacOS system
///