Skip to content

Commit

Permalink
removed unused version util
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahSaso committed Sep 20, 2024
1 parent e960b8d commit 98995bf
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions packages/utils/features.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import semverGte from 'semver/functions/gte'
import semverLt from 'semver/functions/lt'

import { ContractVersion, Feature, SupportedFeatureMap } from '@dao-dao/types'

Expand Down Expand Up @@ -77,24 +76,3 @@ export const versionGte = (
return false
}
}

/**
* Checks if a given version is less than a specified version.
*
* @param {ContractVersion} version - The version to check.
* @param {ContractVersion} ltThis - The version to compare with.
* @return {boolean} Returns true if the given version is less than the
* specified version.
*/
export const versionLt = (
version: ContractVersion,
ltThis: ContractVersion
): boolean => {
try {
return semverLt(version, ltThis)
} catch {
// If throws an error, one of the versions was invalid (likely not a
// version, like ContractVersion.Gov), so just return false.
return false
}
}

0 comments on commit 98995bf

Please sign in to comment.