From 7834bf557daf6788abb944f35018de5ea5318a00 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 2 Nov 2015 17:30:45 +0800 Subject: [PATCH] JSDOC/Packer.vala --- JSDOC/Packer.vala | 126 +--------------------------------------------- 1 file changed, 2 insertions(+), 124 deletions(-) diff --git a/JSDOC/Packer.vala b/JSDOC/Packer.vala index a876cb7..6a81d27 100644 --- a/JSDOC/Packer.vala +++ b/JSDOC/Packer.vala @@ -343,7 +343,7 @@ namespace JSDOC - }, + } /** * Core packing routine for a file * @@ -411,130 +411,8 @@ namespace JSDOC }, + - timerPrint: function (str) { - var ntime = new Date() * 1; - var tdif = ntime -this.timer; - this.timer = ntime; - print('['+tdif+']'+str); - }, - - /** - * - * Translation concept... - * -> replace text strings with _T.... - * -> this file will need inserting at the start of the application.... - * -> we need to generate 2 files, - * -> a reference used to do the translation, and the _T file.. - * - * - * We store the trsum on the token... - * - */ - - writeTranslateFile : function(fn, minfile, toks) - { - - var map = {}; // 'string=> md5sum' - var _this = this; - var t, last, next; - - - var tokfind = function (j,dir) { - while (1) { - if ((dir < 0) && (j < 0)) { - return false; - } - if ((dir > 0) && (j >= toks.length)) { - return false; - } - j += dir; - if (toks[j].type != 'WHIT') { - return toks[j]; - } - } - return false; - - } - - - for (var i=0;i