mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-24 00:50:28 +00:00
Removed dead code
Left over from the big parser refactoring
This commit is contained in:
parent
00676c6966
commit
12683c7d5f
@ -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);
|
||||
|
@ -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
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user