a few nitpick cleanups

This commit is contained in:
adelikat 2016-12-14 14:30:43 -06:00
parent 8e4142e839
commit adb7af2134
2 changed files with 9 additions and 6 deletions

View File

@ -48,11 +48,17 @@ namespace BizHawk.Emulation.Common
public abstract void TraceFromCallback();
public ITraceSink _sink;
private ITraceSink _sink;
public bool Enabled { get { return Sink != null; } }
public bool Enabled
{
get { return Sink != null; }
}
public void Put(TraceInfo info) { Sink.Put(info); }
public void Put(TraceInfo info)
{
Sink.Put(info);
}
public ITraceSink Sink
{
@ -72,7 +78,6 @@ namespace BizHawk.Emulation.Common
}
}
public string Header { get; set; }
public class TracingMemoryCallback : IMemoryCallback

View File

@ -13,7 +13,6 @@ namespace BizHawk.Emulation.Common
/// <summary>
/// clears all services from a target
/// </summary>
/// <param name="target"></param>
public static void ClearServices(object target)
{
Type targetType = target.GetType();
@ -64,7 +63,6 @@ namespace BizHawk.Emulation.Common
}
}
[AttributeUsage(AttributeTargets.Property)]
public class RequiredService : Attribute
{