From 519725bb3c075ee2462c929f5997cb068e18466a Mon Sep 17 00:00:00 2001 From: Ondřej Surý Date: Mon, 26 Mar 2012 16:50:58 +0200 Subject: Imported Upstream version 2012.03.22 --- src/cmd/godoc/appinit.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/cmd/godoc/appinit.go') diff --git a/src/cmd/godoc/appinit.go b/src/cmd/godoc/appinit.go index e65be4094..4096a4f22 100644 --- a/src/cmd/godoc/appinit.go +++ b/src/cmd/godoc/appinit.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build ignore +// +build appengine package main @@ -42,8 +42,7 @@ func init() { log.Fatalf("%s: %s\n", zipfile, err) } // rc is never closed (app running forever) - fs = NewZipFS(rc) - fsHttp = NewHttpZipFS(rc, *goroot) + fs.Bind("/", NewZipFS(rc, zipFilename), *goroot, bindReplace) // initialize http handlers readTemplates() @@ -53,9 +52,6 @@ func init() { // initialize default directory tree with corresponding timestamp. initFSTree() - // initialize directory trees for user-defined file systems (-path flag). - initDirTrees() - // Immediately update metadata. updateMetadata() -- cgit v1.2.3