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

Unified Diff: obsolete/Microsoft.VisualStudio.Project/EnumDependencies.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/EnumDependencies.cs
diff --git a/obsolete/Microsoft.VisualStudio.Project/EnumDependencies.cs b/obsolete/Microsoft.VisualStudio.Project/EnumDependencies.cs
deleted file mode 100644
index bc5a05f15d12c6c36baeb7fe811588d9f9fcd073..0000000000000000000000000000000000000000
--- a/obsolete/Microsoft.VisualStudio.Project/EnumDependencies.cs
+++ /dev/null
@@ -1,79 +0,0 @@
-/// Copyright (c) Microsoft Corporation. All rights reserved.
-
-using System;
-using System.Collections.Generic;
-using Microsoft.VisualStudio;
-using Microsoft.VisualStudio.Shell.Interop;
-
-namespace Microsoft.VisualStudio.Project
-{
- [CLSCompliant(false)]
- public class EnumDependencies : IVsEnumDependencies
- {
- private List<IVsDependency> dependencyList = new List<IVsDependency>();
-
- private uint nextIndex;
-
- public EnumDependencies(IList<IVsDependency> dependencyList)
- {
- foreach(IVsDependency dependency in dependencyList)
- {
- this.dependencyList.Add(dependency);
- }
- }
-
- public EnumDependencies(IList<IVsBuildDependency> dependencyList)
- {
- foreach(IVsBuildDependency dependency in dependencyList)
- {
- this.dependencyList.Add(dependency);
- }
- }
-
- public int Clone(out IVsEnumDependencies enumDependencies)
- {
- enumDependencies = new EnumDependencies(this.dependencyList);
- ErrorHandler.ThrowOnFailure(enumDependencies.Skip(this.nextIndex));
- return VSConstants.S_OK;
- }
-
- public int Next(uint elements, IVsDependency[] dependencies, out uint elementsFetched)
- {
- uint fetched = 0;
- int count = this.dependencyList.Count;
-
- while(this.nextIndex < count && elements > 0 && fetched < count)
- {
- dependencies[fetched] = this.dependencyList[(int)this.nextIndex];
- this.nextIndex++;
- fetched++;
- elements--;
-
- }
-
- elementsFetched = fetched;
-
- // Did we get 'em all?
- return (elements == 0 ? VSConstants.S_OK : VSConstants.S_FALSE);
- }
-
- public int Reset()
- {
- this.nextIndex = 0;
- return VSConstants.S_OK;
- }
-
- public int Skip(uint elements)
- {
- this.nextIndex += elements;
- uint count = (uint)this.dependencyList.Count;
-
- if(this.nextIndex > count)
- {
- this.nextIndex = count;
- return VSConstants.S_FALSE;
- }
- return VSConstants.S_OK;
- }
- }
-}

Powered by Google App Engine
This is Rietveld 408576698