some deletions
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / golang.org / x / tools@v0.0.0-20201105173854-bc9fc8d8c4bc / present / iframe.go
diff --git a/.config/coc/extensions/coc-go-data/tools/pkg/mod/golang.org/x/tools@v0.0.0-20201105173854-bc9fc8d8c4bc/present/iframe.go b/.config/coc/extensions/coc-go-data/tools/pkg/mod/golang.org/x/tools@v0.0.0-20201105173854-bc9fc8d8c4bc/present/iframe.go
deleted file mode 100644 (file)
index a932dbe..0000000
+++ /dev/null
@@ -1,50 +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 {
-       Cmd    string // original command from present source
-       URL    string
-       Width  int
-       Height int
-}
-
-func (i Iframe) PresentCmd() string   { return i.Cmd }
-func (i Iframe) TemplateName() string { return "iframe" }
-
-func parseIframe(ctx *Context, fileName string, lineno int, text string) (Elem, error) {
-       args := strings.Fields(text)
-       if len(args) < 2 {
-               return nil, fmt.Errorf("incorrect iframe invocation: %q", text)
-       }
-       i := Iframe{Cmd: text, 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
-}