Removed dead code

Left over from the big parser refactoring
print-window-tiddler
Jeremy Ruston 2012-12-29 22:27:36 +00:00
rodzic 00676c6966
commit 12683c7d5f
2 zmienionych plików z 0 dodań i 15 usunięć

Wyświetl plik

@ -26,8 +26,6 @@ exports.startup = function() {
$tw.modules.applyMethods("tiddlermethod",$tw.Tiddler.prototype);
$tw.modules.applyMethods("wikimethod",$tw.Wiki.prototype);
$tw.modules.applyMethods("tiddlerdeserializer",$tw.Wiki.tiddlerDeserializerModules);
$tw.Wiki.tiddlerSerializerModules = {};
$tw.modules.applyMethods("tiddlerserializer",$tw.Wiki.tiddlerSerializerModules);
// Set up the wiki store
$tw.wiki.initParsers();
$tw.wiki.initSyncers();
@ -96,7 +94,6 @@ exports.startup = function() {
var templateTitle = "$:/templates/PageTemplate",
parser = $tw.wiki.parseTiddler(templateTitle),
renderTree = new $tw.WikiRenderTree(parser,{wiki: $tw.wiki});
console.log("Parse tree",parser);
renderTree.execute({tiddlerTitle: templateTitle});
var container = document.createElement("div");
document.body.insertBefore(container,document.body.firstChild);

Wyświetl plik

@ -165,18 +165,6 @@ exports.addTiddler = function(tiddler) {
this.touchTiddler(title);
};
/*
Serialise tiddlers to a specified text serialization format
*/
exports.serializeTiddlers = function(tiddlers,type) {
var serializer = $tw.Wiki.tiddlerSerializerModules[type];
if(serializer) {
return serializer.call(this,tiddlers);
} else {
return null;
}
};
/*
Return a sorted array of tiddler titles, optionally filtered by a tag
*/