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

Unified Diff: obsolete/Microsoft.VisualStudio.Project/Automation/OAReferenceItem.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: obsolete/Microsoft.VisualStudio.Project/Automation/OAReferenceItem.cs
diff --git a/obsolete/Microsoft.VisualStudio.Project/Automation/OAReferenceItem.cs b/obsolete/Microsoft.VisualStudio.Project/Automation/OAReferenceItem.cs
deleted file mode 100644
index 11952c146c0cbc8a989ababe36c3a419ee41457f..0000000000000000000000000000000000000000
--- a/obsolete/Microsoft.VisualStudio.Project/Automation/OAReferenceItem.cs
+++ /dev/null
@@ -1,83 +0,0 @@
-/// Copyright (c) Microsoft Corporation. All rights reserved.
-
-using System;
-using System.Diagnostics;
-using System.Diagnostics.CodeAnalysis;
-using System.Runtime.InteropServices;
-
-namespace Microsoft.VisualStudio.Project.Automation
-{
- /// <summary>
- /// Represents the automation object equivalent to a ReferenceNode object
- /// </summary>
- [SuppressMessage("Microsoft.Interoperability", "CA1405:ComVisibleTypeBaseTypesShouldBeComVisible")]
- [ComVisible(true), CLSCompliant(false)]
- public class OAReferenceItem : OAProjectItem<ReferenceNode>
- {
- #region ctors
- public OAReferenceItem(OAProject project, ReferenceNode node)
- : base(project, node)
- {
- }
-
- #endregion
-
- #region overridden methods
- /// <summary>
- /// Not implemented. If called throws invalid operation exception.
- /// </summary>
- public override void Delete()
- {
- throw new InvalidOperationException();
- }
-
-
- /// <summary>
- /// Not implemented. If called throws invalid operation exception.
- /// </summary>
- /// <param name="viewKind"> A Constants. vsViewKind indicating the type of view to use.</param>
- /// <returns></returns>
- public override EnvDTE.Window Open(string viewKind)
- {
- throw new InvalidOperationException();
- }
-
- /// <summary>
- /// Gets or sets the name of the object.
- /// </summary>
- public override string Name
- {
- get
- {
- return base.Name;
- }
- set
- {
- throw new InvalidOperationException();
- }
- }
-
- /// <summary>
- /// Gets the ProjectItems collection containing the ProjectItem object supporting this property.
- /// </summary>
- public override EnvDTE.ProjectItems Collection
- {
- get
- {
- // Get the parent node (ReferenceContainerNode)
- ReferenceContainerNode parentNode = this.Node.Parent as ReferenceContainerNode;
- Debug.Assert(parentNode != null, "Failed to get the parent node");
-
- // Get the ProjectItems object for the parent node
- if(parentNode != null)
- {
- // The root node for the project
- return ((OAReferenceFolderItem)parentNode.GetAutomationObject()).ProjectItems;
- }
-
- return null;
- }
- }
- #endregion
- }
-}

Powered by Google App Engine
This is Rietveld 408576698