From 8b14f3bd4711a103e323d652cca8cc91fadff196 Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Thu, 12 Nov 2009 18:26:45 -0800 Subject: Remove -align flag from gofmt. (Making it work correctly with -spaces is a bit of work and the output won't make much sense as it is intended as input to tabwriter.) Fixes issue 100. R=rsc http://codereview.appspot.com/154102 --- src/cmd/gofmt/doc.go | 2 -- src/cmd/gofmt/gofmt.go | 4 ---- 2 files changed, 6 deletions(-) (limited to 'src') diff --git a/src/cmd/gofmt/doc.go b/src/cmd/gofmt/doc.go index 5851fe2d9..b0ba5e5f2 100644 --- a/src/cmd/gofmt/doc.go +++ b/src/cmd/gofmt/doc.go @@ -24,8 +24,6 @@ The flags are: align with spaces instead of tabs. -tabwidth=8 tab width in spaces. - -align=true - align columns. Debugging flags: diff --git a/src/cmd/gofmt/gofmt.go b/src/cmd/gofmt/gofmt.go index 4d2d14f52..bec4c8891 100644 --- a/src/cmd/gofmt/gofmt.go +++ b/src/cmd/gofmt/gofmt.go @@ -28,7 +28,6 @@ var ( trace = flag.Bool("trace", false, "print parse trace"); // layout control - align = flag.Bool("align", true, "align columns"); tabwidth = flag.Int("tabwidth", 8, "tab width"); usespaces = flag.Bool("spaces", false, "align with spaces instead of tabs"); ) @@ -63,9 +62,6 @@ func parserMode() uint { func printerMode() uint { mode := uint(0); - if !*align { - mode |= printer.RawFormat - } if *usespaces { mode |= printer.UseSpaces } -- cgit v1.2.3