Commit d723202bb27fa58a01020482f417bdf0a3af1a76
1 parent
57dd070d7c
Exists in
master
remove commented codes
Showing 1 changed file with 0 additions and 45 deletions Side-by-side Diff
gentong.js
... | ... | @@ -239,51 +239,6 @@ function responseCodeFromMessage(message) { |
239 | 239 | return; |
240 | 240 | } |
241 | 241 | |
242 | -/* | |
243 | -function updateBalance(message) { | |
244 | - var balance = getBalanceFromMessage(message); | |
245 | - if (balance) { | |
246 | - logger.info('Balance: ' + balance); | |
247 | - | |
248 | - try { | |
249 | - aaa.updateBalance(balance); | |
250 | - } | |
251 | - catch(err) { | |
252 | - logger.warn('Exception on partner.updateBalance: ' + err, {exception: err}); | |
253 | - } | |
254 | - } | |
255 | -} | |
256 | -*/ | |
257 | - | |
258 | -/* | |
259 | -function getBalanceFromMessage(message, balance_regex) { | |
260 | - if (!balance_regex) { | |
261 | - if (config && config.globals && config.globals.balance_regex) { | |
262 | - balance_regex = config.globals.balance_regex; | |
263 | - } | |
264 | - } | |
265 | - | |
266 | - if (!balance_regex) { | |
267 | - return; | |
268 | - } | |
269 | - | |
270 | - try { | |
271 | - var re = new RegExp(balance_regex); | |
272 | - var matches = message.match(re); | |
273 | - | |
274 | - var result = matches[1]; | |
275 | - result = result.replace(/\./g, ''); | |
276 | - result = result.replace(/,/g, ''); | |
277 | - | |
278 | - | |
279 | - return Number(result); | |
280 | - } | |
281 | - catch(err) { | |
282 | - return; | |
283 | - } | |
284 | -} | |
285 | -*/ | |
286 | - | |
287 | 242 | function start(_config, _callbackReport, options) { |
288 | 243 | config = _config; |
289 | 244 | callbackReport = _callbackReport |