Skip to content

Commit

Permalink
remove unnecessary file slice.go
Browse files Browse the repository at this point in the history
  • Loading branch information
evanw committed Aug 7, 2023
1 parent 0e5b5fb commit d770d53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
13 changes: 0 additions & 13 deletions internal/helpers/slice.go

This file was deleted.

4 changes: 2 additions & 2 deletions internal/js_parser/js_parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -11703,7 +11703,7 @@ func (p *parser) instantiateDefineExpr(loc logger.Loc, expr config.DefineExpr, o
// Substitute user-specified defines
if defines, ok := p.options.defines.DotDefines[parts[len(parts)-1]]; ok {
for _, define := range defines {
if define.Data.DefineExpr != nil && helpers.StringSlicesAreEqual(define.Parts, parts) {
if define.Data.DefineExpr != nil && helpers.StringArraysEqual(define.Parts, parts) {
return p.instantiateDefineExpr(loc, *define.Data.DefineExpr, opts)
}
}
Expand All @@ -11713,7 +11713,7 @@ func (p *parser) instantiateDefineExpr(loc logger.Loc, expr config.DefineExpr, o
// Check injected dot names
if names, ok := p.injectedDotNames[parts[len(parts)-1]]; ok {
for _, name := range names {
if helpers.StringSlicesAreEqual(name.parts, parts) {
if helpers.StringArraysEqual(name.parts, parts) {
return p.instantiateInjectDotName(loc, name, opts.assignTarget)
}
}
Expand Down

0 comments on commit d770d53

Please sign in to comment.