0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-12-01 01:11:24 +01:00

remove some long-since obsolete generator code

This commit is contained in:
Rich Harris 2017-04-04 17:55:44 -04:00
parent f43e71b959
commit 77eee8602d

View File

@ -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 } ) {
if ( this.imports.length ) {
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 () {
const tail = this.current;
this.current = tail.parent;