From 201910228cc8527e80f3d828ba7833b6e6abb595 Mon Sep 17 00:00:00 2001 From: Ben Boyter Date: Fri, 11 Oct 2024 13:30:10 +1100 Subject: [PATCH] Purge useless code --- SCC-OUTPUT-REPORT.html | 68 +++++++++++++++++++++--------------------- main.go | 3 -- processor/processor.go | 3 -- 3 files changed, 34 insertions(+), 40 deletions(-) diff --git a/SCC-OUTPUT-REPORT.html b/SCC-OUTPUT-REPORT.html index 066ebebc1..655534c5b 100644 --- a/SCC-OUTPUT-REPORT.html +++ b/SCC-OUTPUT-REPORT.html @@ -13,23 +13,13 @@ Go 27 - 9564 + 9513 1458 - 447 - 7659 - 1529 - 254904 - 4067 - - processor/formatters.go - - 1606 - 208 - 43 - 1355 - 289 - 48000 - 794 + 444 + 7611 + 1501 + 252816 + 4061 processor/workers_test.go @@ -40,6 +30,16 @@ 287 32293 525 + + processor/formatters.go + + 1561 + 209 + 41 + 1311 + 263 + 46071 + 792 processor/formatters_test.go @@ -63,23 +63,23 @@ processor/processor.go - 679 - 143 - 105 - 431 + 676 + 142 + 104 + 430 93 - 19596 - 443 + 19515 + 441 main.go - 435 + 432 10 6 - 419 - 10 - 9800 - 274 + 416 + 8 + 9722 + 271 processor/detector_test.go @@ -294,15 +294,15 @@ Total 27 - 9564 + 9513 1458 - 447 - 7659 - 1529 - 254904 - 4067 + 444 + 7611 + 1501 + 252816 + 4061 - Estimated Cost to Develop (organic) $229,074
Estimated Schedule Effort (organic) 7.86 months
Estimated People Required (organic) 2.59
+ Estimated Cost to Develop (organic) $227,566
Estimated Schedule Effort (organic) 7.84 months
Estimated People Required (organic) 2.58
\ No newline at end of file diff --git a/main.go b/main.go index 131db6fb3..5542faca1 100644 --- a/main.go +++ b/main.go @@ -42,9 +42,6 @@ func main() { Version: processor.Version, Run: func(cmd *cobra.Command, args []string) { processor.DirFilePaths = args - if processor.ConfigureLimits != nil { - processor.ConfigureLimits() - } processor.ConfigureGc() processor.ConfigureLazy(true) processor.Process() diff --git a/processor/processor.go b/processor/processor.go index 16fdd6405..578e228f7 100644 --- a/processor/processor.go +++ b/processor/processor.go @@ -231,9 +231,6 @@ var LanguageFeaturesMutex = sync.Mutex{} // Start time in milli seconds in case we want the total time var startTimeMilli = makeTimestampMilli() -// ConfigureLimits configures ulimits where possible -var ConfigureLimits func() - // ConfigureGc needs to be set outside of ProcessConstants because it should only be enabled in command line // mode https://github.com/boyter/scc/issues/32 func ConfigureGc() {