From de4b3bebf74bdd7fdcf2d253118012080d5743c3 Mon Sep 17 00:00:00 2001 From: Eric <5089238+emizzle@users.noreply.github.com> Date: Wed, 21 Feb 2024 16:43:25 +1100 Subject: [PATCH] remove unneeded gcsafes --- tests/integration/codexconfig.nim | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/integration/codexconfig.nim b/tests/integration/codexconfig.nim index 0e8a2434..5f15331b 100644 --- a/tests/integration/codexconfig.nim +++ b/tests/integration/codexconfig.nim @@ -48,7 +48,7 @@ proc checkBounds(self: CodexConfigs, idx: int) {.raises: [CodexConfigError].} = proc buildConfig( config: CodexConfig, - msg: string): CodexConf {.gcsafe, raises: [CodexConfigError].} = + msg: string): CodexConf {.raises: [CodexConfigError].} = proc postFix(msg: string): string = if msg.len > 0: @@ -66,7 +66,7 @@ proc buildConfig( proc addCliOption*( config: var CodexConfig, group = PersistenceCmd.noCmd, - cliOption: CliOption) {.gcsafe, raises: [CodexConfigError].} = + cliOption: CliOption) {.raises: [CodexConfigError].} = var options = config.cliPersistenceOptions.getOrDefault(group) options[cliOption.key] = cliOption # overwrite if already exists @@ -76,14 +76,14 @@ proc addCliOption*( proc addCliOption*( config: var CodexConfig, group = PersistenceCmd.noCmd, - key: string, value = "") {.gcsafe, raises: [CodexConfigError].} = + key: string, value = "") {.raises: [CodexConfigError].} = config.addCliOption(group, CliOption(key: key, value: value)) proc addCliOption*( config: var CodexConfig, group = StartUpCmd.noCmd, - cliOption: CliOption) {.gcsafe, raises: [CodexConfigError].} = + cliOption: CliOption) {.raises: [CodexConfigError].} = var options = config.cliOptions.getOrDefault(group) options[cliOption.key] = cliOption # overwrite if already exists @@ -93,19 +93,19 @@ proc addCliOption*( proc addCliOption*( config: var CodexConfig, group = StartUpCmd.noCmd, - key: string, value = "") {.gcsafe, raises: [CodexConfigError].} = + key: string, value = "") {.raises: [CodexConfigError].} = config.addCliOption(group, CliOption(key: key, value: value)) proc addCliOption*( config: var CodexConfig, - cliOption: CliOption) {.gcsafe, raises: [CodexConfigError].} = + cliOption: CliOption) {.raises: [CodexConfigError].} = config.addCliOption(StartUpCmd.noCmd, cliOption) proc addCliOption*( config: var CodexConfig, - key: string, value = "") {.gcsafe, raises: [CodexConfigError].} = + key: string, value = "") {.raises: [CodexConfigError].} = config.addCliOption(StartUpCmd.noCmd, CliOption(key: key, value: value))