Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3c2a192

Browse filesBrowse files
committed
Remove unused code
1 parent 24cf9d4 commit 3c2a192
Copy full SHA for 3c2a192

File tree

1 file changed

+0
-19
lines changed
Filter options

1 file changed

+0
-19
lines changed

‎local/platformsh/generator/config.go

Copy file name to clipboardExpand all lines: local/platformsh/generator/config.go
-19Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.