A bit of code cleanup

This commit is contained in:
Henrik Andersson
2015-10-13 17:53:00 +10:00
parent 282bcb3939
commit e643534db0
8 changed files with 24 additions and 14 deletions
+17
View File
@@ -0,0 +1,17 @@
using System.Collections.Generic;
namespace Octokit
{
public class WebHookConfigComparer : IEqualityComparer<KeyValuePair<string, string>>
{
public bool Equals(KeyValuePair<string, string> x, KeyValuePair<string, string> y)
{
return x.Key == y.Key;
}
public int GetHashCode(KeyValuePair<string, string> obj)
{
return obj.Key.GetHashCode();
}
}
}
+1 -14
View File
@@ -1,5 +1,4 @@
using System;
using System.Collections.Generic;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
@@ -145,16 +144,4 @@ namespace Octokit
Json
}
public class WebHookConfigComparer : IEqualityComparer<KeyValuePair<string, string>>
{
public bool Equals(KeyValuePair<string, string> x, KeyValuePair<string, string> y)
{
return x.Key == y.Key;
}
public int GetHashCode(KeyValuePair<string, string> obj)
{
return obj.Key.GetHashCode();
}
}
}
+1
View File
@@ -408,6 +408,7 @@
<Compile Include="Exceptions\InvalidGitIgnoreTemplateException.cs" />
<Compile Include="Models\Request\NewRepositoryWebHook.cs" />
<Compile Include="Exceptions\RepositoryWebHookConfigException.cs" />
<Compile Include="Helpers\WebHookConfigComparer.cs" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
</Project>
+1
View File
@@ -415,6 +415,7 @@
<Compile Include="Exceptions\InvalidGitIgnoreTemplateException.cs" />
<Compile Include="Models\Request\NewRepositoryWebHook.cs" />
<Compile Include="Exceptions\RepositoryWebHookConfigException.cs" />
<Compile Include="Helpers\WebHookConfigComparer.cs" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Novell\Novell.MonoDroid.CSharp.targets" />
</Project>
+1
View File
@@ -411,6 +411,7 @@
<Compile Include="Exceptions\InvalidGitIgnoreTemplateException.cs" />
<Compile Include="Models\Request\NewRepositoryWebHook.cs" />
<Compile Include="Exceptions\RepositoryWebHookConfigException.cs" />
<Compile Include="Helpers\WebHookConfigComparer.cs" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.MonoTouch.CSharp.targets" />
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+1
View File
@@ -405,6 +405,7 @@
<Compile Include="Exceptions\InvalidGitIgnoreTemplateException.cs" />
<Compile Include="Models\Request\NewRepositoryWebHook.cs" />
<Compile Include="Exceptions\RepositoryWebHookConfigException.cs" />
<Compile Include="Helpers\WebHookConfigComparer.cs" />
</ItemGroup>
<ItemGroup>
<CodeAnalysisDictionary Include="..\CustomDictionary.xml">
+1
View File
@@ -412,6 +412,7 @@
<Compile Include="Exceptions\InvalidGitIgnoreTemplateException.cs" />
<Compile Include="Models\Request\NewRepositoryWebHook.cs" />
<Compile Include="Exceptions\RepositoryWebHookConfigException.cs" />
<Compile Include="Helpers\WebHookConfigComparer.cs" />
</ItemGroup>
<ItemGroup>
<CodeAnalysisDictionary Include="..\CustomDictionary.xml">
+1
View File
@@ -85,6 +85,7 @@
<Compile Include="Helpers\HttpClientExtensions.cs" />
<Compile Include="Helpers\PropertyOrField.cs" />
<Compile Include="Helpers\SerializeNullAttribute.cs" />
<Compile Include="Helpers\WebHookConfigComparer.cs" />
<Compile Include="Http\HttpMessageHandlerFactory.cs" />
<Compile Include="Http\IApiInfoProvider.cs" />
<Compile Include="Http\ProductHeaderValue.cs" />