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:
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 } ) {
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user