Unused code

This commit is contained in:
Arran Ubels 2023-02-15 23:37:27 +11:00
parent 8b765a5302
commit b0b5409675
No known key found for this signature in database
GPG Key ID: 135EDC7B21D17F48

View File

@ -2156,17 +2156,6 @@ func (p *parser) trimExtra() {
} }
} }
// func (p *parser) remove(i, length int) {
// if len(p.format) > i+length {
// //append(a[:i], a[j:]...)
// p.format = append(p.format[0:i], p.format[i+length:]...)
// }
// if len(p.datestr) > i+length {
// //append(a[:i], a[j:]...)
// p.datestr = fmt.Sprintf("%s%s", p.datestr[0:i], p.datestr[i+length:])
// }
// }
func (p *parser) parse() (time.Time, error) { func (p *parser) parse() (time.Time, error) {
if p.t != nil { if p.t != nil {
return *p.t, nil return *p.t, nil