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

Unified Diff: experimental/visual_studio_plugin/src/MsAd7.BaseImpl/DebugProperties/RegisterSet.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/MsAd7.BaseImpl/DebugProperties/RegisterSet.cs
diff --git a/experimental/visual_studio_plugin/src/MsAd7.BaseImpl/DebugProperties/RegisterSet.cs b/experimental/visual_studio_plugin/src/MsAd7.BaseImpl/DebugProperties/RegisterSet.cs
deleted file mode 100644
index cde76b27581086d1e3990421693a4b2179e693c9..0000000000000000000000000000000000000000
--- a/experimental/visual_studio_plugin/src/MsAd7.BaseImpl/DebugProperties/RegisterSet.cs
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright 2009 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.
-using System;
-using System.Collections.Generic;
-using Microsoft.VisualStudio.Debugger.Interop;
-
-namespace Google.MsAd7.BaseImpl.DebugProperties {
- public class RegisterSet : DebugPropertyBase, ICloneable {
- public RegisterSet(RegisterSetSchema schema,
- DebugPropertyBase parent)
- : base(
- parent,
- schema.Name,
- "<typeless>",
- null,
- 0,
- enum_DBG_ATTRIB_FLAGS.DBG_ATTRIB_NONE,
- null) {
- schema_ = schema;
-
- foreach (var registerDef in schema.Registers) {
- var register = new Register(this, registerDef.Name);
- registersByIndex_.Add(registerDef.Index, register);
- registersByName_.Add(registerDef.Name, register);
- }
- }
-
- public ulong this[int index] {
- get { return Convert.ToUInt64(registersByIndex_[index].Value); }
- set { registersByIndex_[index].Value = value; }
- }
-
- public ulong this[string name]{
- get { return Convert.ToUInt64(registersByName_[name].Value); }
- set { registersByName_[name].Value = value; }
- }
-
- private RegisterSetSchema schema_;
- private readonly Dictionary<int, Register> registersByIndex_ = new Dictionary<int, Register>();
- private readonly Dictionary<string, Register> registersByName_ = new Dictionary<string, Register>();
-
- #region Implementation of ICloneable
-
- /// <summary>
- /// Creates a new object that is a copy of the current instance.
- /// </summary>
- /// <returns>
- /// A new object that is a copy of this instance.
- /// </returns>
- /// <filterpriority>2</filterpriority>
- public object Clone() {
- RegisterSet other = new RegisterSet(schema_, null);
- foreach (KeyValuePair<int, Register> pair in registersByIndex_) {
- other[pair.Key] = Convert.ToUInt64(pair.Value.Value);
- }
- return other;
- }
-
- #endregion
- }
-}

Powered by Google App Engine
This is Rietveld 408576698