From f12d854fcf5e46fe526a92a316b2c6ec118fcea3 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sun, 20 Jan 2019 12:35:37 +0100 Subject: Replace fcgi with plain http server --- vendor/golang.org/x/tools/present/iframe.go | 45 ----------------------------- 1 file changed, 45 deletions(-) delete mode 100644 vendor/golang.org/x/tools/present/iframe.go (limited to 'vendor/golang.org/x/tools/present/iframe.go') diff --git a/vendor/golang.org/x/tools/present/iframe.go b/vendor/golang.org/x/tools/present/iframe.go deleted file mode 100644 index 46649f0..0000000 --- a/vendor/golang.org/x/tools/present/iframe.go +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright 2013 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package present - -import ( - "fmt" - "strings" -) - -func init() { - Register("iframe", parseIframe) -} - -type Iframe struct { - URL string - Width int - Height int -} - -func (i Iframe) TemplateName() string { return "iframe" } - -func parseIframe(ctx *Context, fileName string, lineno int, text string) (Elem, error) { - args := strings.Fields(text) - i := Iframe{URL: args[1]} - a, err := parseArgs(fileName, lineno, args[2:]) - if err != nil { - return nil, err - } - switch len(a) { - case 0: - // no size parameters - case 2: - if v, ok := a[0].(int); ok { - i.Height = v - } - if v, ok := a[1].(int); ok { - i.Width = v - } - default: - return nil, fmt.Errorf("incorrect iframe invocation: %q", text) - } - return i, nil -} -- cgit v1.2.3