mirror of
https://github.com/araddon/dateparse.git
synced 2025-01-19 11:16:12 +08:00
Unused code
This commit is contained in:
parent
8b765a5302
commit
b0b5409675
11
parseany.go
11
parseany.go
@ -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) {
|
||||
if p.t != nil {
|
||||
return *p.t, nil
|
||||
|
Loading…
Reference in New Issue
Block a user