File tree 1 file changed +0
-19
lines changed
local/platformsh/generator
1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -195,25 +195,6 @@ func parsePHPExtensions() (string, error) {
195
195
return extsAsString , nil
196
196
}
197
197
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
-
217
198
func sortVersions (versions []string ) ([]string , error ) {
218
199
parsedVersions := make ([]* version.Version , len (versions ))
219
200
for i , raw := range versions {
You can’t perform that action at this time.
0 commit comments