Skip to content

Commit 3c2a192

Browse files
committed
Remove unused code
1 parent 24cf9d4 commit 3c2a192

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

local/platformsh/generator/config.go

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -195,25 +195,6 @@ func parsePHPExtensions() (string, error) {
195195
return extsAsString, nil
196196
}
197197

198-
func parseLine(line string) (string, []string) {
199-
next := strings.Index(line[1:], "|") + 1
200-
name := strings.TrimSpace(line[1:next])
201-
var versions []string
202-
for {
203-
current := next + 1
204-
nextIndex := strings.Index(line[current:], "|")
205-
if nextIndex == -1 {
206-
break
207-
}
208-
next = nextIndex + current
209-
versions = append(versions, strings.TrimSpace(line[current:next]))
210-
if next >= len(line) {
211-
break
212-
}
213-
}
214-
return name, versions
215-
}
216-
217198
func sortVersions(versions []string) ([]string, error) {
218199
parsedVersions := make([]*version.Version, len(versions))
219200
for i, raw := range versions {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy