removed deprecated functions from topics.js (server side parsing) and fixed the 150ms initial delay on first load

This commit is contained in:
psychobunny
2013-05-06 20:23:38 +00:00
parent 724c1511af
commit 178bc82a55
2 changed files with 10 additions and 29 deletions

View File

@@ -10,25 +10,6 @@ var RDB = require('./redis.js'),
}
Topics.generate_topic_body = function(callback, tid, start, end) {
var topic_body = global.templates['topic'];
posts.get(function(data) {
topic_body = topic_body.parse(data);
callback(topic_body);
}, tid, start, end);
};
// this needs to move into forum.js
Topics.generate_forum_body = function(callback, start, end) {
var forum_body = global.templates['home'];
Topics.get(function(data) {
forum_body = forum_body.parse(data);
callback(forum_body);
}, start, end);
};
Topics.get = function(callback, start, end) {
if (start == null) start = 0;