Skip to content
This repository was archived by the owner on Nov 11, 2024. It is now read-only.

Commit 0e9e098

Browse files
committed
Remove some old, semi-duplicate code from WatchCommand.cs.
Fixes #44.
1 parent 8252d59 commit 0e9e098

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

src/Commands/WatchCommand.cs

-30
Original file line numberDiff line numberDiff line change
@@ -242,36 +242,6 @@ public override void Process(string args)
242242
Log.Info("{0}{1}{2}{3} it = {4}", prefix, Color.DarkGreen,
243243
val.Item3.TypeName, Color.Reset, value);
244244
}
245-
246-
foreach (var pair in Debugger.Watches)
247-
{
248-
ObjectValue obj = null;
249-
string value;
250-
bool error;
251-
252-
if (!f.ValidateExpression(pair.Value))
253-
{
254-
value = "Expression is invalid";
255-
error = true;
256-
}
257-
else
258-
{
259-
obj = f.GetExpressionValue(pair.Value, Debugger.Options.EvaluationOptions);
260-
obj.WaitHandle.WaitOne();
261-
262-
var strErr = Utilities.StringizeValue(obj);
263-
264-
value = strErr.Item1;
265-
error = strErr.Item2;
266-
}
267-
268-
var prefix = string.Format("#{0} '{1}': ", pair.Key, pair.Value);
269-
270-
if (error)
271-
Log.Error("{0}{1}", prefix, value);
272-
else
273-
Log.Info("{0}{1}{2}{3} it = {4}", prefix, Color.DarkGreen, obj.TypeName, Color.Reset, value);
274-
}
275245
}
276246
}
277247

0 commit comments

Comments
 (0)