Skip to content

Commit

Permalink
Removed the compilerFactory method since it might not be used in the …
Browse files Browse the repository at this point in the history
…end.
  • Loading branch information
cowlby committed Aug 3, 2011
1 parent 5eac17e commit 90f7394
Showing 1 changed file with 0 additions and 38 deletions.
38 changes: 0 additions & 38 deletions Source/Lighter.js
Expand Up @@ -220,44 +220,6 @@ var Lighter = this.Lighter = new Class({
fuel: ff[0],
flame: ff[1]
};
},

compilerFactory: function(mode, altLines)
{
var compiler = null;

switch (mode) {
case 'inline':
compiler = new Compiler.Inline({ containerTag: 'code' });
break;

case 'pre':
compiler = new Compiler.Inline({ containerTag: 'pre' });
break;

case 'ol':
compiler = new Compiler.List({ altLines: altLines });
break;

case 'div':
compiler = new Compiler.Lines({ altLines: altLines });
break;

case 'table':
compiler = new Compiler.Lines({
altLines: altLines,
containerTag: { parent: 'table', child: 'tbody' },
linesTag: { parent: 'tr', child: 'td' },
numbersTag: 'td'
});
break;

default:
throw new Error('Unknown mode specified.');
break;
}

return compiler;
}
});

Expand Down

0 comments on commit 90f7394

Please sign in to comment.