remove some long-since obsolete generator code

pull/453/head
Rich Harris 8 years ago
parent f43e71b959
commit 77eee8602d

@ -154,15 +154,6 @@ export default class Generator {
}; };
} }
fire ( eventName, data ) {
const handlers = this._callbacks.has( eventName ) && this._callbacks.get( eventName ).slice();
if ( !handlers ) return;
for ( let i = 0; i < handlers.length; i += 1 ) {
handlers[i].call( this, data );
}
}
generate ( result, options, { name, format } ) { generate ( result, options, { name, format } ) {
if ( this.imports.length ) { if ( this.imports.length ) {
const statements = []; const statements = [];
@ -431,14 +422,6 @@ export default class Generator {
}; };
} }
on ( eventName, handler ) {
if ( this._callbacks.has( eventName ) ) {
this._callbacks.get( eventName ).push( handler );
} else {
this._callbacks.set( eventName, [ handler ] );
}
}
pop () { pop () {
const tail = this.current; const tail = this.current;
this.current = tail.parent; this.current = tail.parent;

Loading…
Cancel
Save