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

Unified Diff: experimental/visual_studio_plugin/src/NaClVsx.Package/DebugSupport/DWARF/ExtensionMethods.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/src/NaClVsx.Package/DebugSupport/DWARF/ExtensionMethods.cs
diff --git a/experimental/visual_studio_plugin/src/NaClVsx.Package/DebugSupport/DWARF/ExtensionMethods.cs b/experimental/visual_studio_plugin/src/NaClVsx.Package/DebugSupport/DWARF/ExtensionMethods.cs
deleted file mode 100644
index 8c4903bfb3e2cd448c5ee6c74bf30016edef737e..0000000000000000000000000000000000000000
--- a/experimental/visual_studio_plugin/src/NaClVsx.Package/DebugSupport/DWARF/ExtensionMethods.cs
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright (c) 2011 The Native Client Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#region
-
-using System.Collections.Generic;
-
-#endregion
-
-namespace Google.NaClVsx.DebugSupport.DWARF {
- public static class ExtensionMethods {
- public static T PeekOrDefault<T>(this Stack<T> s) where T : class {
- if (s.Count == 0) {
- return null;
- }
- return s.Peek();
- }
-
- public static T PeekOrDefault<T>(this Stack<T> s, T defaultValue) {
- if (s.Count == 0) {
- return defaultValue;
- }
- return s.Peek();
- }
-
- public static TV GetValueOrDefault<TK, TV>(this IDictionary<TK, TV> d,
- TK key,
- TV defaultValue) {
- TV result;
- if (!d.TryGetValue(key, out result)) {
- result = defaultValue;
- }
- return result;
- }
- }
-}

Powered by Google App Engine
This is Rietveld 408576698