removed unused page number function.
This commit is contained in:
parent
17439c8c5e
commit
adf53add3a
|
@ -984,24 +984,4 @@ extension GoogleReaderCompatibleAPICaller {
|
||||||
accountMetadata?.conditionalGetInfo = conditionalGet
|
accountMetadata?.conditionalGetInfo = conditionalGet
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func extractPageNumber(link: String?) -> Int? {
|
|
||||||
|
|
||||||
guard let link = link else {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
if let lowerBound = link.range(of: "page=")?.upperBound {
|
|
||||||
if let upperBound = link.range(of: "&")?.lowerBound {
|
|
||||||
return Int(link[lowerBound..<upperBound])
|
|
||||||
}
|
|
||||||
if let upperBound = link.range(of: ">")?.lowerBound {
|
|
||||||
return Int(link[lowerBound..<upperBound])
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return nil
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue