Remove unused functions getCurrentPageRawData & getCurrentPageUrl
This commit is contained in:
parent
76cf3da4ae
commit
ebd33c6dbd
16
client.go
16
client.go
|
@ -414,7 +414,7 @@ func (c *client) doCommandAs(action string, values []string) {
|
||||||
c.SetMessage("Cannot set READ ONLY setting 'configlocation'", true)
|
c.SetMessage("Cannot set READ ONLY setting 'configlocation'", true)
|
||||||
c.DrawMessage()
|
c.DrawMessage()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
err := saveConfig()
|
err := saveConfig()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
c.SetMessage("Value set, but error saving config to file", true)
|
c.SetMessage("Value set, but error saving config to file", true)
|
||||||
|
@ -483,20 +483,6 @@ func (c *client) doLinkCommandAs(action, target string, values []string) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *client) getCurrentPageUrl() (string, error) {
|
|
||||||
if c.PageState.Length < 1 {
|
|
||||||
return "", fmt.Errorf("There are no pages in history")
|
|
||||||
}
|
|
||||||
return c.PageState.History[c.PageState.Position].Location.Full, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (c *client) getCurrentPageRawData() (string, error) {
|
|
||||||
if c.PageState.Length < 1 {
|
|
||||||
return "", fmt.Errorf("There are no pages in history")
|
|
||||||
}
|
|
||||||
return c.PageState.History[c.PageState.Position].RawContent, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (c *client) saveFile(u Url, name string) {
|
func (c *client) saveFile(u Url, name string) {
|
||||||
var file []byte
|
var file []byte
|
||||||
var err error
|
var err error
|
||||||
|
|
Loading…
Reference in New Issue