Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Eliminate now-unused BValue type

  • Loading branch information...
commit 54cf51a4d9f171b2a4b57374d713ca903705fbc1 1 parent 5392c63
@sorear authored
Showing with 1 addition and 11 deletions.
  1. +0 −4 lib/CodeGen.cs
  2. +1 −7 lib/Kernel.cs
View
4 lib/CodeGen.cs
@@ -287,7 +287,6 @@ sealed class Tokens {
public static readonly Type SubInfo = typeof(SubInfo);
public static readonly Type P6any = typeof(P6any);
public static readonly Type Variable = typeof(Variable);
- public static readonly Type BValue = typeof(BValue);
public static readonly Type P6opaque = typeof(P6opaque);
public static readonly Type DynBlockDelegate = typeof(DynBlockDelegate);
public static readonly Type STable = typeof(STable);
@@ -473,8 +472,6 @@ sealed class Tokens {
public static readonly FieldInfo P6any_mo =
P6any.GetField("mo");
- public static readonly FieldInfo BValue_v =
- BValue.GetField("v");
public static readonly FieldInfo StashEnt_v =
typeof(StashEnt).GetField("v");
public static readonly FieldInfo SubInfo_protosub =
@@ -3133,7 +3130,6 @@ class NamProcessor {
thandlers["var_new_tied"] = Constructy(typeof(TiedVariable).GetConstructor(new Type[] { Tokens.P6any, Tokens.P6any, Tokens.P6any }));
thandlers["obj_typename"] = Methody(null, Tokens.P6any.GetMethod("GetTypeName"));
thandlers["fetch"] = Methody(null, Tokens.Variable_Fetch);
- thandlers["bget"] = FieldGet(Tokens.BValue, "v");
thandlers["default_new"] = delegate(CpsOp[] z) {
return CpsOp.Sequence(
CpsOp.Label("!again", false),
View
8 lib/Kernel.cs
@@ -321,13 +321,7 @@ public sealed class TiedVariable: Variable {
}
}
- // Used to make Variable sharing explicit in some cases; will eventually be
- // the only way to share a bvalue
- public sealed class BValue {
- public Variable v;
- public BValue(Variable v) { this.v = v; }
- }
-
+ // Used to make Variable sharing explicit in some cases
public class StashEnt : IFreeze {
public Variable v;
public string file;
Please sign in to comment.
Something went wrong with that request. Please try again.