diff --git a/cmd/noms-sync/noms_sync.go b/cmd/noms-sync/noms_sync.go index eca806109b..d172066030 100644 --- a/cmd/noms-sync/noms_sync.go +++ b/cmd/noms-sync/noms_sync.go @@ -10,7 +10,6 @@ import ( "fmt" "log" "os" - "runtime" "github.com/attic-labs/noms/go/d" "github.com/attic-labs/noms/go/spec" @@ -23,9 +22,6 @@ var ( ) func main() { - cpuCount := runtime.NumCPU() - runtime.GOMAXPROCS(cpuCount) - flag.Usage = func() { fmt.Fprintf(os.Stderr, "Moves datasets between or within databases\n\n") fmt.Fprintf(os.Stderr, "noms sync [options] \n\n") diff --git a/samples/go/csv/csv-export/exporter.go b/samples/go/csv/csv-export/exporter.go index c52ff3de79..4dd41c06e7 100644 --- a/samples/go/csv/csv-export/exporter.go +++ b/samples/go/csv/csv-export/exporter.go @@ -9,7 +9,6 @@ import ( "flag" "fmt" "os" - "runtime" "github.com/attic-labs/noms/go/d" "github.com/attic-labs/noms/go/spec" @@ -25,8 +24,6 @@ var ( func main() { spec.RegisterDatabaseFlags() - cpuCount := runtime.NumCPU() - runtime.GOMAXPROCS(cpuCount) flag.Usage = func() { fmt.Fprintln(os.Stderr, "Usage: csv-export [options] dataset > filename") diff --git a/samples/go/csv/csv-import/importer.go b/samples/go/csv/csv-import/importer.go index e4a110cabc..bd00456863 100644 --- a/samples/go/csv/csv-import/importer.go +++ b/samples/go/csv/csv-import/importer.go @@ -10,7 +10,6 @@ import ( "io" "os" "regexp" - "runtime" "strconv" "strings" "time" @@ -45,8 +44,6 @@ func main() { ) spec.RegisterDatabaseFlags() - cpuCount := runtime.NumCPU() - runtime.GOMAXPROCS(cpuCount) flag.Usage = func() { fmt.Fprintf(os.Stderr, "Usage: csv-import [options] \n\n") diff --git a/samples/go/xml-import/xml_importer.go b/samples/go/xml-import/xml_importer.go index e2ce6c66ba..775630cc11 100644 --- a/samples/go/xml-import/xml_importer.go +++ b/samples/go/xml-import/xml_importer.go @@ -65,7 +65,6 @@ func main() { defer profile.MaybeStartProfile().Stop() cpuCount := runtime.NumCPU() - runtime.GOMAXPROCS(cpuCount) filesChan := make(chan fileIndex, 1024) refsChan := make(chan refIndex, 1024)