mirror of
https://github.com/miniflux/v2.git
synced 2025-07-22 17:18:37 +00:00
Remove a now-useless function
This commit is contained in:
parent
059f5c0905
commit
2f56ebd3a6
1 changed files with 4 additions and 8 deletions
|
@ -452,16 +452,12 @@ func isPositiveInteger(value string) bool {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
func getAttributeValue(name string, attributes []html.Attribute) string {
|
func getIntegerAttributeValue(name string, attributes []html.Attribute) int {
|
||||||
for _, attribute := range attributes {
|
for _, attribute := range attributes {
|
||||||
if attribute.Key == name {
|
if attribute.Key == name {
|
||||||
return attribute.Val
|
number, _ := strconv.Atoi(attribute.Val)
|
||||||
}
|
|
||||||
}
|
|
||||||
return ""
|
|
||||||
}
|
|
||||||
|
|
||||||
func getIntegerAttributeValue(name string, attributes []html.Attribute) int {
|
|
||||||
number, _ := strconv.Atoi(getAttributeValue(name, attributes))
|
|
||||||
return number
|
return number
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue