Commit 3a0a616c authored by Jesse McGrew's avatar Jesse McGrew
Browse files

Remove some members that are marked with Obsolete and no longer used.

parent af0b07afefbb
......@@ -25,32 +25,6 @@ using Zilf.Common;
namespace Zapf
{
[Obsolete("Use " + nameof(IFileSystem) + " instead.")]
class OpeningFileEventArgs : EventArgs
{
public OpeningFileEventArgs(string filename, bool writing)
{
FileName = filename;
Writing = writing;
}
public string FileName { get; }
public bool Writing { get; }
public Stream? Stream { get; set; }
}
[Obsolete("Use " + nameof(IFileSystem) + " instead.")]
class CheckingFilePresenceEventArgs : EventArgs
{
public CheckingFilePresenceEventArgs(string filename) => FileName = filename;
public string FileName { get; }
public bool? Exists { get; set; }
}
public class InitializingContextEventArgs : EventArgs
{
public InitializingContextEventArgs(Context ctx) => Context = ctx;
......
......@@ -24,20 +24,6 @@ namespace Zilf.Interpreter
{
static class ApplicableExtensions
{
[Obsolete("Use IsApplicable(this ZilObject, Context, out IApplicable?) instead.")]
public static IApplicable? AsApplicable(this ZilObject? zo, Context ctx)
{
if (zo == null)
return null;
var del = ctx.GetApplyTypeDelegate(zo.GetTypeAtom(ctx));
if (del != null)
return new ApplicableWrapper(zo, del);
return zo as IApplicable;
}
public static bool IsApplicable([NotNullWhen(true)] this ZilObject? zo, Context ctx)
{
if (zo == null)
......
......@@ -1268,7 +1268,7 @@ namespace Zilf.Interpreter
/// <para>It does <b>not</b> include <see cref="IApplicable"/>, because any ZIL type can be
/// made applicable via <c>APPLYTYPE</c> even if its C# type does not implement the interface.
/// Arguments must be converted to <see cref="IApplicable"/> with
/// <see cref="ApplicableExtensions.AsApplicable(ZilObject, Context)"/> instead.</para>
/// <see cref="ApplicableExtensions.IsApplicable(ZilObject?, Context, out IApplicable?)"/> instead.</para>
/// </remarks>
static bool IsZilObjectType(Type t) => typeof(ZilObject).IsAssignableFrom(t) || t == typeof(IStructure);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment