summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2009-11-12 18:26:45 -0800
committerRobert Griesemer <gri@golang.org>2009-11-12 18:26:45 -0800
commit8b14f3bd4711a103e323d652cca8cc91fadff196 (patch)
tree622e0a47f4b5529ad0301aa5af349606cc759d8a
parent69236a9cd4cf1f090c64c06027d6faee1fe779ab (diff)
downloadgolang-8b14f3bd4711a103e323d652cca8cc91fadff196.tar.gz
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
-rw-r--r--src/cmd/gofmt/doc.go2
-rw-r--r--src/cmd/gofmt/gofmt.go4
2 files changed, 0 insertions, 6 deletions
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
}