[gjs] coverage: Remove duplicated code
- From: Sam Spilsbury <samspilsbury src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs] coverage: Remove duplicated code
- Date: Tue, 14 Jul 2015 01:34:42 +0000 (UTC)
commit ce10b2e6e526abc72971faa29e76c14d770998c0
Author: Sam Spilsbury <smspillaz gmail com>
Date: Thu Jul 2 00:22:02 2015 +0800
coverage: Remove duplicated code
We were creating a function map earlier during the
object declaration.
modules/coverage.js | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)
---
diff --git a/modules/coverage.js b/modules/coverage.js
index 9255540..e0fef7b 100644
--- a/modules/coverage.js
+++ b/modules/coverage.js
@@ -763,12 +763,6 @@ function CoverageStatisticsContainer(prefixes, cache) {
});
}
}
- cacheDataForFilename.functions =
Object.keys(statisticsForFilename.functionCounters).map(function(key) {
- return {
- key: key,
- line: Number(key.split(':')[1])
- };
- });
cache_data[filename] = cacheDataForFilename;
});
return JSON.stringify(cache_data);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]