Skip to content

Commit

Permalink
remove old cadence 1.0 migration code
Browse files Browse the repository at this point in the history
  • Loading branch information
jribbink committed Oct 25, 2024
1 parent 963ee5d commit 12832a0
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions extension/src/flow-cli/cli-selection-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import { SemVer } from 'semver'
import { CliBinary } from './cli-versions-provider'

const CHANGE_CLI_BINARY = 'cadence.changeFlowCliBinary'
const CADENCE_V1_CLI_REGEX = /-cadence-v1.0.0/g
// label with icon
const GET_BINARY_LABEL = (version: SemVer): string => `Flow CLI v${version.format()}`

export class CliSelectionProvider {
Expand Down Expand Up @@ -157,8 +155,4 @@ class CustomBinaryItem implements vscode.QuickPickItem {
constructor () {
this.label = 'Choose a custom version...'
}
}

export function isCliCadenceV1 (version: SemVer): boolean {
return CADENCE_V1_CLI_REGEX.test(version.raw)
}
}

0 comments on commit 12832a0

Please sign in to comment.