diff --git a/godoc/pres.go b/godoc/pres.go index 800937af..7cedcb54 100644 --- a/godoc/pres.go +++ b/godoc/pres.go @@ -47,13 +47,6 @@ type Presentation struct { ShowPlayground bool DeclLinks bool - // SrcMode outputs source code instead of documentation in command-line mode. - SrcMode bool - // HTMLMode outputs HTML instead of plain text in command-line mode. - HTMLMode bool - // AllMode includes unexported identifiers in the output in command-line mode. - AllMode bool - // NotesRx optionally specifies a regexp to match // notes to render in the output. NotesRx *regexp.Regexp diff --git a/godoc/server.go b/godoc/server.go index 57766a21..b03e14a6 100644 --- a/godoc/server.go +++ b/godoc/server.go @@ -356,7 +356,6 @@ const ( NoFiltering PageInfoMode = 1 << iota // do not filter exports AllMethods // show all embedded methods ShowSource // show source code, do not extract documentation - NoHTML // show result in textual form, do not generate HTML FlatDir // show directory in a flat (non-indented) manner NoTypeAssoc // don't associate consts, vars, and factory functions with types ) @@ -366,7 +365,6 @@ var modeNames = map[string]PageInfoMode{ "all": NoFiltering, "methods": AllMethods, "src": ShowSource, - "text": NoHTML, "flat": FlatDir, }