Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 87f25bf

Browse files
Remove FileMatchPattern delegate and replace with System.Func
This was only added because I initially thought it would read better, but it also obscures the in and out types. Since there's no functional difference, I removed it again just to reduce the amount of custom code.
1 parent 717d53d commit 87f25bf

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

‎source/AndroidResolver/AndroidResolver.csproj‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@
5959
<Compile Include="src\CommandLine.cs" />
6060
<Compile Include="src\CommandLineDialog.cs" />
6161
<Compile Include="src\EmbeddedResource.cs" />
62-
<Compile Include="src\FileMatchPattern.cs" />
6362
<Compile Include="src\GradleResolver.cs" />
6463
<Compile Include="src\GradleTemplateResolver.cs" />
6564
<Compile Include="src\GradleWrapper.cs" />

‎source/AndroidResolver/src/FileMatchPattern.cs‎

Lines changed: 0 additions & 3 deletions
This file was deleted.

‎source/AndroidResolver/src/PlayServicesResolver.cs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1080,7 +1080,7 @@ internal static void Log(string message, Google.LogLevel level = LogLevel.Info)
10801080
/// <summary>
10811081
/// Patterns of files that are monitored to trigger auto resolution.
10821082
/// </summary>
1083-
private static HashSet<FileMatchPattern> autoResolveFilePatterns = new HashSet<FileMatchPattern>();
1083+
private static HashSet<Func<string,bool>> autoResolveFilePatterns = new HashSet<Func<string,bool>>();
10841084

10851085
/// <summary>
10861086
/// Add file patterns to monitor to trigger auto resolution.
@@ -1089,7 +1089,7 @@ internal static void Log(string message, Google.LogLevel level = LogLevel.Info)
10891089
/// resolution.</param>
10901090
public static void AddAutoResolutionFilePatterns(IEnumerable<Regex> patterns) {
10911091
// Only regex patterns are supported in the public API, but a more performant default is used internally.
1092-
autoResolveFilePatterns.UnionWith(patterns.Select<Regex, FileMatchPattern>(p => p.IsMatch));
1092+
autoResolveFilePatterns.UnionWith(patterns.Select<Regex, Func<string,bool>>(p => p.IsMatch));
10931093
}
10941094

10951095
/// <summary>

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /