Skip to content

Commit 1afada7

Browse files
committed
[no-relnote] Remove unused code
Signed-off-by: Evan Lezar <elezar@nvidia.com>
1 parent 5c3ffc2 commit 1afada7

File tree

3 files changed

+0
-29
lines changed

3 files changed

+0
-29
lines changed

cmd/nvidia-container-runtime-hook/hook_config.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,6 @@ const (
2020
// HookConfig : options for the nvidia-container-runtime-hook.
2121
type HookConfig config.Config
2222

23-
func getDefaultHookConfig() (HookConfig, error) {
24-
defaultCfg, err := config.GetDefault()
25-
if err != nil {
26-
return HookConfig{}, err
27-
}
28-
29-
return *(*HookConfig)(defaultCfg), nil
30-
}
31-
3223
// loadConfig loads the required paths for the hook config.
3324
func loadConfig() (*config.Config, error) {
3425
var configPaths []string

internal/config/hook.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,3 @@ type RuntimeHookConfig struct {
2424
// SkipModeDetection disables the mode check for the runtime hook.
2525
SkipModeDetection bool `toml:"skip-mode-detection"`
2626
}
27-
28-
// GetDefaultRuntimeHookConfig defines the default values for the config
29-
func GetDefaultRuntimeHookConfig() (*RuntimeHookConfig, error) {
30-
cfg, err := GetDefault()
31-
if err != nil {
32-
return nil, err
33-
}
34-
35-
return &cfg.NVIDIAContainerRuntimeHookConfig, nil
36-
}

internal/config/runtime.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,3 @@ type cdiModeConfig struct {
4545
type csvModeConfig struct {
4646
MountSpecPath string `toml:"mount-spec-path"`
4747
}
48-
49-
// GetDefaultRuntimeConfig defines the default values for the config
50-
func GetDefaultRuntimeConfig() (*RuntimeConfig, error) {
51-
cfg, err := GetDefault()
52-
if err != nil {
53-
return nil, err
54-
}
55-
56-
return &cfg.NVIDIAContainerRuntimeConfig, nil
57-
}

0 commit comments

Comments
 (0)