mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2025-01-08 10:51:09 +00:00
Delete an unused function
This commit is contained in:
parent
f37627d3b6
commit
b2c672386b
@ -2,9 +2,6 @@
|
|||||||
{% import "path" %}
|
{% import "path" %}
|
||||||
{% import "github.com/bouncepaw/mycorrhiza/util" %}
|
{% import "github.com/bouncepaw/mycorrhiza/util" %}
|
||||||
|
|
||||||
{% func TreeHTML() %}
|
|
||||||
{% endfunc %}
|
|
||||||
|
|
||||||
Subhyphae links are recursive. It may end up looking like that if drawn with
|
Subhyphae links are recursive. It may end up looking like that if drawn with
|
||||||
pseudographics:
|
pseudographics:
|
||||||
╔══════════════╗
|
╔══════════════╗
|
||||||
|
@ -13,53 +13,6 @@ import "path"
|
|||||||
//line tree/view.qtpl:3
|
//line tree/view.qtpl:3
|
||||||
import "github.com/bouncepaw/mycorrhiza/util"
|
import "github.com/bouncepaw/mycorrhiza/util"
|
||||||
|
|
||||||
//line tree/view.qtpl:5
|
|
||||||
import (
|
|
||||||
qtio422016 "io"
|
|
||||||
|
|
||||||
qt422016 "github.com/valyala/quicktemplate"
|
|
||||||
)
|
|
||||||
|
|
||||||
//line tree/view.qtpl:5
|
|
||||||
var (
|
|
||||||
_ = qtio422016.Copy
|
|
||||||
_ = qt422016.AcquireByteBuffer
|
|
||||||
)
|
|
||||||
|
|
||||||
//line tree/view.qtpl:5
|
|
||||||
func StreamTreeHTML(qw422016 *qt422016.Writer) {
|
|
||||||
//line tree/view.qtpl:5
|
|
||||||
qw422016.N().S(`
|
|
||||||
`)
|
|
||||||
//line tree/view.qtpl:6
|
|
||||||
}
|
|
||||||
|
|
||||||
//line tree/view.qtpl:6
|
|
||||||
func WriteTreeHTML(qq422016 qtio422016.Writer) {
|
|
||||||
//line tree/view.qtpl:6
|
|
||||||
qw422016 := qt422016.AcquireWriter(qq422016)
|
|
||||||
//line tree/view.qtpl:6
|
|
||||||
StreamTreeHTML(qw422016)
|
|
||||||
//line tree/view.qtpl:6
|
|
||||||
qt422016.ReleaseWriter(qw422016)
|
|
||||||
//line tree/view.qtpl:6
|
|
||||||
}
|
|
||||||
|
|
||||||
//line tree/view.qtpl:6
|
|
||||||
func TreeHTML() string {
|
|
||||||
//line tree/view.qtpl:6
|
|
||||||
qb422016 := qt422016.AcquireByteBuffer()
|
|
||||||
//line tree/view.qtpl:6
|
|
||||||
WriteTreeHTML(qb422016)
|
|
||||||
//line tree/view.qtpl:6
|
|
||||||
qs422016 := string(qb422016.B)
|
|
||||||
//line tree/view.qtpl:6
|
|
||||||
qt422016.ReleaseByteBuffer(qb422016)
|
|
||||||
//line tree/view.qtpl:6
|
|
||||||
return qs422016
|
|
||||||
//line tree/view.qtpl:6
|
|
||||||
}
|
|
||||||
|
|
||||||
// Subhyphae links are recursive. It may end up looking like that if drawn with
|
// Subhyphae links are recursive. It may end up looking like that if drawn with
|
||||||
// pseudographics:
|
// pseudographics:
|
||||||
// ╔══════════════╗
|
// ╔══════════════╗
|
||||||
@ -69,183 +22,196 @@ func TreeHTML() string {
|
|||||||
// ║╚════════════╝║
|
// ║╚════════════╝║
|
||||||
// ╚══════════════╝
|
// ╚══════════════╝
|
||||||
|
|
||||||
//line tree/view.qtpl:16
|
//line tree/view.qtpl:13
|
||||||
|
import (
|
||||||
|
qtio422016 "io"
|
||||||
|
|
||||||
|
qt422016 "github.com/valyala/quicktemplate"
|
||||||
|
)
|
||||||
|
|
||||||
|
//line tree/view.qtpl:13
|
||||||
|
var (
|
||||||
|
_ = qtio422016.Copy
|
||||||
|
_ = qt422016.AcquireByteBuffer
|
||||||
|
)
|
||||||
|
|
||||||
|
//line tree/view.qtpl:13
|
||||||
func streamchildHTML(qw422016 *qt422016.Writer, c *child) {
|
func streamchildHTML(qw422016 *qt422016.Writer, c *child) {
|
||||||
//line tree/view.qtpl:16
|
//line tree/view.qtpl:13
|
||||||
qw422016.N().S(`
|
qw422016.N().S(`
|
||||||
`)
|
`)
|
||||||
//line tree/view.qtpl:18
|
//line tree/view.qtpl:15
|
||||||
sort.Slice(c.children, func(i, j int) bool {
|
sort.Slice(c.children, func(i, j int) bool {
|
||||||
return c.children[i].name < c.children[j].name
|
return c.children[i].name < c.children[j].name
|
||||||
})
|
})
|
||||||
|
|
||||||
//line tree/view.qtpl:21
|
//line tree/view.qtpl:18
|
||||||
qw422016.N().S(`
|
qw422016.N().S(`
|
||||||
<li class="subhyphae__entry">
|
<li class="subhyphae__entry">
|
||||||
<a class="subhyphae__link `)
|
<a class="subhyphae__link `)
|
||||||
//line tree/view.qtpl:23
|
//line tree/view.qtpl:20
|
||||||
if !c.exists {
|
if !c.exists {
|
||||||
//line tree/view.qtpl:23
|
//line tree/view.qtpl:20
|
||||||
qw422016.N().S(`wikilink_new`)
|
qw422016.N().S(`wikilink_new`)
|
||||||
//line tree/view.qtpl:23
|
//line tree/view.qtpl:20
|
||||||
}
|
}
|
||||||
//line tree/view.qtpl:23
|
//line tree/view.qtpl:20
|
||||||
qw422016.N().S(`" href="/hypha/`)
|
qw422016.N().S(`" href="/hypha/`)
|
||||||
//line tree/view.qtpl:23
|
//line tree/view.qtpl:20
|
||||||
qw422016.E().S(c.name)
|
qw422016.E().S(c.name)
|
||||||
//line tree/view.qtpl:23
|
//line tree/view.qtpl:20
|
||||||
qw422016.N().S(`">
|
qw422016.N().S(`">
|
||||||
`)
|
`)
|
||||||
//line tree/view.qtpl:24
|
//line tree/view.qtpl:21
|
||||||
qw422016.E().S(util.BeautifulName(path.Base(c.name)))
|
qw422016.E().S(util.BeautifulName(path.Base(c.name)))
|
||||||
//line tree/view.qtpl:24
|
//line tree/view.qtpl:21
|
||||||
qw422016.N().S(`
|
qw422016.N().S(`
|
||||||
</a>
|
</a>
|
||||||
`)
|
`)
|
||||||
//line tree/view.qtpl:26
|
//line tree/view.qtpl:23
|
||||||
if len(c.children) > 0 {
|
if len(c.children) > 0 {
|
||||||
//line tree/view.qtpl:26
|
//line tree/view.qtpl:23
|
||||||
qw422016.N().S(`
|
qw422016.N().S(`
|
||||||
<ul>
|
<ul>
|
||||||
`)
|
`)
|
||||||
//line tree/view.qtpl:28
|
//line tree/view.qtpl:25
|
||||||
for _, child := range c.children {
|
for _, child := range c.children {
|
||||||
//line tree/view.qtpl:28
|
//line tree/view.qtpl:25
|
||||||
qw422016.N().S(`
|
qw422016.N().S(`
|
||||||
`)
|
`)
|
||||||
//line tree/view.qtpl:29
|
//line tree/view.qtpl:26
|
||||||
qw422016.N().S(childHTML(&child))
|
qw422016.N().S(childHTML(&child))
|
||||||
//line tree/view.qtpl:29
|
//line tree/view.qtpl:26
|
||||||
qw422016.N().S(`
|
qw422016.N().S(`
|
||||||
`)
|
`)
|
||||||
//line tree/view.qtpl:30
|
//line tree/view.qtpl:27
|
||||||
}
|
}
|
||||||
//line tree/view.qtpl:30
|
//line tree/view.qtpl:27
|
||||||
qw422016.N().S(`
|
qw422016.N().S(`
|
||||||
</ul>
|
</ul>
|
||||||
`)
|
`)
|
||||||
//line tree/view.qtpl:32
|
//line tree/view.qtpl:29
|
||||||
}
|
}
|
||||||
//line tree/view.qtpl:32
|
//line tree/view.qtpl:29
|
||||||
qw422016.N().S(`
|
qw422016.N().S(`
|
||||||
</li>
|
</li>
|
||||||
`)
|
`)
|
||||||
//line tree/view.qtpl:34
|
//line tree/view.qtpl:31
|
||||||
}
|
}
|
||||||
|
|
||||||
//line tree/view.qtpl:34
|
//line tree/view.qtpl:31
|
||||||
func writechildHTML(qq422016 qtio422016.Writer, c *child) {
|
func writechildHTML(qq422016 qtio422016.Writer, c *child) {
|
||||||
//line tree/view.qtpl:34
|
//line tree/view.qtpl:31
|
||||||
qw422016 := qt422016.AcquireWriter(qq422016)
|
qw422016 := qt422016.AcquireWriter(qq422016)
|
||||||
//line tree/view.qtpl:34
|
//line tree/view.qtpl:31
|
||||||
streamchildHTML(qw422016, c)
|
streamchildHTML(qw422016, c)
|
||||||
//line tree/view.qtpl:34
|
//line tree/view.qtpl:31
|
||||||
qt422016.ReleaseWriter(qw422016)
|
qt422016.ReleaseWriter(qw422016)
|
||||||
//line tree/view.qtpl:34
|
//line tree/view.qtpl:31
|
||||||
}
|
}
|
||||||
|
|
||||||
//line tree/view.qtpl:34
|
//line tree/view.qtpl:31
|
||||||
func childHTML(c *child) string {
|
func childHTML(c *child) string {
|
||||||
//line tree/view.qtpl:34
|
//line tree/view.qtpl:31
|
||||||
qb422016 := qt422016.AcquireByteBuffer()
|
qb422016 := qt422016.AcquireByteBuffer()
|
||||||
//line tree/view.qtpl:34
|
//line tree/view.qtpl:31
|
||||||
writechildHTML(qb422016, c)
|
writechildHTML(qb422016, c)
|
||||||
//line tree/view.qtpl:34
|
//line tree/view.qtpl:31
|
||||||
qs422016 := string(qb422016.B)
|
qs422016 := string(qb422016.B)
|
||||||
//line tree/view.qtpl:34
|
//line tree/view.qtpl:31
|
||||||
qt422016.ReleaseByteBuffer(qb422016)
|
qt422016.ReleaseByteBuffer(qb422016)
|
||||||
//line tree/view.qtpl:34
|
//line tree/view.qtpl:31
|
||||||
return qs422016
|
return qs422016
|
||||||
//line tree/view.qtpl:34
|
//line tree/view.qtpl:31
|
||||||
}
|
}
|
||||||
|
|
||||||
//line tree/view.qtpl:37
|
//line tree/view.qtpl:34
|
||||||
func streamsiblingHTML(qw422016 *qt422016.Writer, s *sibling) {
|
func streamsiblingHTML(qw422016 *qt422016.Writer, s *sibling) {
|
||||||
//line tree/view.qtpl:37
|
//line tree/view.qtpl:34
|
||||||
qw422016.N().S(`
|
qw422016.N().S(`
|
||||||
<li class="sibling-hyphae__entry">
|
<li class="sibling-hyphae__entry">
|
||||||
<a class="sibling-hyphae__link `)
|
<a class="sibling-hyphae__link `)
|
||||||
//line tree/view.qtpl:39
|
//line tree/view.qtpl:36
|
||||||
if !s.exists {
|
if !s.exists {
|
||||||
//line tree/view.qtpl:39
|
//line tree/view.qtpl:36
|
||||||
qw422016.N().S(`wikilink_new`)
|
qw422016.N().S(`wikilink_new`)
|
||||||
//line tree/view.qtpl:39
|
//line tree/view.qtpl:36
|
||||||
}
|
}
|
||||||
//line tree/view.qtpl:39
|
//line tree/view.qtpl:36
|
||||||
qw422016.N().S(`" href="/hypha/`)
|
qw422016.N().S(`" href="/hypha/`)
|
||||||
//line tree/view.qtpl:39
|
//line tree/view.qtpl:36
|
||||||
qw422016.E().S(s.name)
|
qw422016.E().S(s.name)
|
||||||
//line tree/view.qtpl:39
|
//line tree/view.qtpl:36
|
||||||
qw422016.N().S(`">
|
qw422016.N().S(`">
|
||||||
`)
|
`)
|
||||||
//line tree/view.qtpl:40
|
//line tree/view.qtpl:37
|
||||||
qw422016.E().S(util.BeautifulName(path.Base(s.name)))
|
qw422016.E().S(util.BeautifulName(path.Base(s.name)))
|
||||||
//line tree/view.qtpl:40
|
//line tree/view.qtpl:37
|
||||||
qw422016.N().S(`
|
qw422016.N().S(`
|
||||||
<span class="sibling-hyphae__count">
|
<span class="sibling-hyphae__count">
|
||||||
`)
|
`)
|
||||||
//line tree/view.qtpl:42
|
//line tree/view.qtpl:39
|
||||||
if s.directSubhyphaeCount > 0 {
|
if s.directSubhyphaeCount > 0 {
|
||||||
//line tree/view.qtpl:42
|
//line tree/view.qtpl:39
|
||||||
qw422016.N().S(`
|
qw422016.N().S(`
|
||||||
<span class="sibling-hyphae__direct-count">
|
<span class="sibling-hyphae__direct-count">
|
||||||
`)
|
`)
|
||||||
//line tree/view.qtpl:44
|
//line tree/view.qtpl:41
|
||||||
qw422016.N().D(s.directSubhyphaeCount)
|
qw422016.N().D(s.directSubhyphaeCount)
|
||||||
//line tree/view.qtpl:44
|
//line tree/view.qtpl:41
|
||||||
qw422016.N().S(`
|
qw422016.N().S(`
|
||||||
</span>
|
</span>
|
||||||
`)
|
`)
|
||||||
//line tree/view.qtpl:46
|
//line tree/view.qtpl:43
|
||||||
}
|
}
|
||||||
//line tree/view.qtpl:46
|
//line tree/view.qtpl:43
|
||||||
qw422016.N().S(`
|
qw422016.N().S(`
|
||||||
`)
|
`)
|
||||||
//line tree/view.qtpl:47
|
//line tree/view.qtpl:44
|
||||||
if s.indirectSubhyphaeCount > 0 {
|
if s.indirectSubhyphaeCount > 0 {
|
||||||
//line tree/view.qtpl:47
|
//line tree/view.qtpl:44
|
||||||
qw422016.N().S(`
|
qw422016.N().S(`
|
||||||
<span class="sibling-hyphae__indirect-count">
|
<span class="sibling-hyphae__indirect-count">
|
||||||
(`)
|
(`)
|
||||||
//line tree/view.qtpl:49
|
//line tree/view.qtpl:46
|
||||||
qw422016.N().D(s.indirectSubhyphaeCount)
|
qw422016.N().D(s.indirectSubhyphaeCount)
|
||||||
//line tree/view.qtpl:49
|
//line tree/view.qtpl:46
|
||||||
qw422016.N().S(`)
|
qw422016.N().S(`)
|
||||||
</span>
|
</span>
|
||||||
`)
|
`)
|
||||||
//line tree/view.qtpl:51
|
//line tree/view.qtpl:48
|
||||||
}
|
}
|
||||||
//line tree/view.qtpl:51
|
//line tree/view.qtpl:48
|
||||||
qw422016.N().S(`
|
qw422016.N().S(`
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
`)
|
`)
|
||||||
//line tree/view.qtpl:55
|
//line tree/view.qtpl:52
|
||||||
}
|
}
|
||||||
|
|
||||||
//line tree/view.qtpl:55
|
//line tree/view.qtpl:52
|
||||||
func writesiblingHTML(qq422016 qtio422016.Writer, s *sibling) {
|
func writesiblingHTML(qq422016 qtio422016.Writer, s *sibling) {
|
||||||
//line tree/view.qtpl:55
|
//line tree/view.qtpl:52
|
||||||
qw422016 := qt422016.AcquireWriter(qq422016)
|
qw422016 := qt422016.AcquireWriter(qq422016)
|
||||||
//line tree/view.qtpl:55
|
//line tree/view.qtpl:52
|
||||||
streamsiblingHTML(qw422016, s)
|
streamsiblingHTML(qw422016, s)
|
||||||
//line tree/view.qtpl:55
|
//line tree/view.qtpl:52
|
||||||
qt422016.ReleaseWriter(qw422016)
|
qt422016.ReleaseWriter(qw422016)
|
||||||
//line tree/view.qtpl:55
|
//line tree/view.qtpl:52
|
||||||
}
|
}
|
||||||
|
|
||||||
//line tree/view.qtpl:55
|
//line tree/view.qtpl:52
|
||||||
func siblingHTML(s *sibling) string {
|
func siblingHTML(s *sibling) string {
|
||||||
//line tree/view.qtpl:55
|
//line tree/view.qtpl:52
|
||||||
qb422016 := qt422016.AcquireByteBuffer()
|
qb422016 := qt422016.AcquireByteBuffer()
|
||||||
//line tree/view.qtpl:55
|
//line tree/view.qtpl:52
|
||||||
writesiblingHTML(qb422016, s)
|
writesiblingHTML(qb422016, s)
|
||||||
//line tree/view.qtpl:55
|
//line tree/view.qtpl:52
|
||||||
qs422016 := string(qb422016.B)
|
qs422016 := string(qb422016.B)
|
||||||
//line tree/view.qtpl:55
|
//line tree/view.qtpl:52
|
||||||
qt422016.ReleaseByteBuffer(qb422016)
|
qt422016.ReleaseByteBuffer(qb422016)
|
||||||
//line tree/view.qtpl:55
|
//line tree/view.qtpl:52
|
||||||
return qs422016
|
return qs422016
|
||||||
//line tree/view.qtpl:55
|
//line tree/view.qtpl:52
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user