diff options
author | Lluis Sanchez <lluis@xamarin.com> | 2019-07-22 10:34:15 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-22 10:34:15 +0300 |
commit | 2425570fe26c2c8e74c99695bbd67101de54896a (patch) | |
tree | 9483b1c3cf781b156bb38b79715bf66718bd3b0e | |
parent | 27ea3e602cf0eea663143453a9559419b0a0a64d (diff) | |
parent | bd3cab4de1b12b474363435258ae4bda7f6390fe (diff) |
Merge pull request #8245 from mono/dnc-unused-file
[DotNetCore] Remove unused file
-rw-r--r-- | main/src/addins/MonoDevelop.DotNetCore/MonoDevelop.DotNetCore.csproj | 1 | ||||
-rw-r--r-- | main/src/addins/MonoDevelop.DotNetCore/MonoDevelop.DotNetCore/FilePathExtensions.cs | 49 |
2 files changed, 0 insertions, 50 deletions
diff --git a/main/src/addins/MonoDevelop.DotNetCore/MonoDevelop.DotNetCore.csproj b/main/src/addins/MonoDevelop.DotNetCore/MonoDevelop.DotNetCore.csproj index 2a1c0e630c..01aa705bac 100644 --- a/main/src/addins/MonoDevelop.DotNetCore/MonoDevelop.DotNetCore.csproj +++ b/main/src/addins/MonoDevelop.DotNetCore/MonoDevelop.DotNetCore.csproj @@ -39,7 +39,6 @@ <Compile Include="MonoDevelop.DotNetCore\TargetFrameworkExtensions.cs" /> <Compile Include="MonoDevelop.DotNetCore\DummyMSBuildOptionsPanel.cs" /> <Compile Include="MonoDevelop.DotNetCore\TargetFrameworkMonikerExtensions.cs" /> - <Compile Include="MonoDevelop.DotNetCore\FilePathExtensions.cs" /> <Compile Include="MonoDevelop.DotNetCore.NodeBuilders\ProjectDependenciesNode.cs" /> <Compile Include="MonoDevelop.DotNetCore\ProjectReferenceExtensions.cs" /> <Compile Include="MonoDevelop.DotNetCore.NodeBuilders\ProjectDependenciesNodeBuilder.cs" /> diff --git a/main/src/addins/MonoDevelop.DotNetCore/MonoDevelop.DotNetCore/FilePathExtensions.cs b/main/src/addins/MonoDevelop.DotNetCore/MonoDevelop.DotNetCore/FilePathExtensions.cs deleted file mode 100644 index 4c065a5a99..0000000000 --- a/main/src/addins/MonoDevelop.DotNetCore/MonoDevelop.DotNetCore/FilePathExtensions.cs +++ /dev/null @@ -1,49 +0,0 @@ -// -// FilePathExtensions.cs -// -// Author: -// Matt Ward <matt.ward@xamarin.com> -// -// Copyright (c) 2017 Xamarin Inc. (http://xamarin.com) -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -using MonoDevelop.Core; - -namespace MonoDevelop.DotNetCore -{ - static class FilePathExtensions - { - public static bool HasSupportedDotNetCoreProjectFileExtension (this FilePath file) - { - return file.HasExtension (".csproj") || file.HasExtension (".fsproj") || file.HasExtension (".vbproj"); - } - - /// <summary> - /// HACK: Hide certain files in Solution window. The solution's .userprefs - /// file is the only file is included properly with the .NET Core MSBuild - /// targets. - /// </summary> - public static bool ShouldBeHidden (this FilePath file) - { - return file.HasExtension (".userprefs") || - file.FileName == ".DS_Store"; - } - } -} |