Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Unified Diff: experimental/visual_studio_plugin/third_party/Microsoft.VisualStudio.Project/BuildDependency.cs

Issue 10928195: First round of dead file removal (Closed) Base URL: https://github.com/samclegg/nativeclient-sdk.git@master
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: experimental/visual_studio_plugin/third_party/Microsoft.VisualStudio.Project/BuildDependency.cs
diff --git a/experimental/visual_studio_plugin/third_party/Microsoft.VisualStudio.Project/BuildDependency.cs b/experimental/visual_studio_plugin/third_party/Microsoft.VisualStudio.Project/BuildDependency.cs
deleted file mode 100644
index e1e79040510466389607370974144942e0b5e924..0000000000000000000000000000000000000000
--- a/experimental/visual_studio_plugin/third_party/Microsoft.VisualStudio.Project/BuildDependency.cs
+++ /dev/null
@@ -1,92 +0,0 @@
-/// Copyright (c) Microsoft Corporation. All rights reserved.
-
-using System;
-using Microsoft.VisualStudio;
-using Microsoft.VisualStudio.Shell;
-using Microsoft.VisualStudio.Shell.Interop;
-
-namespace Microsoft.VisualStudio.Project
-{
- public class BuildDependency : IVsBuildDependency
- {
- Guid referencedProjectGuid = Guid.Empty;
- ProjectNode projectMgr = null;
-
- [CLSCompliant(false)]
- public BuildDependency(ProjectNode projectMgr, Guid projectReference)
- {
- this.referencedProjectGuid = projectReference;
- this.projectMgr = projectMgr;
- }
-
- #region IVsBuildDependency methods
- public int get_CanonicalName(out string canonicalName)
- {
- canonicalName = null;
- return VSConstants.S_OK;
- }
-
- public int get_Type(out System.Guid guidType)
- {
- // All our dependencies are build projects
- guidType = VSConstants.GUID_VS_DEPTYPE_BUILD_PROJECT;
- return VSConstants.S_OK;
- }
-
- public int get_Description(out string description)
- {
- description = null;
- return VSConstants.S_OK;
- }
-
- [CLSCompliant(false)]
- public int get_HelpContext(out uint helpContext)
- {
- helpContext = 0;
- return VSConstants.E_NOTIMPL;
- }
-
- public int get_HelpFile(out string helpFile)
- {
- helpFile = null;
- return VSConstants.E_NOTIMPL;
- }
-
- public int get_MustUpdateBefore(out int mustUpdateBefore)
- {
- // Must always update dependencies
- mustUpdateBefore = 1;
-
- return VSConstants.S_OK;
- }
-
- public int get_ReferredProject(out object unknownProject)
- {
- unknownProject = null;
-
- unknownProject = this.GetReferencedHierarchy();
-
- // If we cannot find the referenced hierarchy return S_FALSE.
- return (unknownProject == null) ? VSConstants.S_FALSE : VSConstants.S_OK;
- }
-
- #endregion
-
- #region helper methods
- private IVsHierarchy GetReferencedHierarchy()
- {
- IVsHierarchy hierarchy = null;
-
- if(this.referencedProjectGuid == Guid.Empty || this.projectMgr == null || this.projectMgr.IsClosed)
- {
- return hierarchy;
- }
-
- return VsShellUtilities.GetHierarchy(this.projectMgr.Site, this.referencedProjectGuid);
-
- }
-
- #endregion
-
- }
-}

Powered by Google App Engine
This is Rietveld 408576698