remove some unused Block properties

pull/1367/head
Rich Harris 6 years ago
parent f892389b00
commit deca8882ac

@ -8,9 +8,6 @@ import shared from './shared';
export interface BlockOptions {
name: string;
generator?: DomGenerator;
expression?: Node;
context?: string;
destructuredContexts?: string[];
comment?: string;
key?: string;
contexts?: Map<string, string>;
@ -24,9 +21,6 @@ export interface BlockOptions {
export default class Block {
generator: DomGenerator;
name: string;
expression: Node;
context: string;
destructuredContexts?: string[];
comment?: string;
key: string;
@ -67,9 +61,6 @@ export default class Block {
constructor(options: BlockOptions) {
this.generator = options.generator;
this.name = options.name;
this.expression = options.expression;
this.context = options.context;
this.destructuredContexts = options.destructuredContexts;
this.comment = options.comment;
// for keyed each blocks

@ -57,7 +57,6 @@ export default class AwaitBlock extends Node {
});
if (arg) {
child.block.context = arg;
child.block.contexts.set(arg, arg); // TODO should be using getUniqueName
}

Loading…
Cancel
Save