From 457577c3a6231ddb916052d92e736b8d6d0e86b2 Mon Sep 17 00:00:00 2001 From: Iain Anderson Date: Tue, 8 Jun 2021 14:16:31 +0100 Subject: [PATCH] refactor: remove unimplemented InitCmd/RemoveCmd configuration (#956) Signed-off-by: Iain Anderson --- example/cmd/device-simple/res/configuration.toml | 4 ---- internal/config/types.go | 10 ---------- 2 files changed, 14 deletions(-) diff --git a/example/cmd/device-simple/res/configuration.toml b/example/cmd/device-simple/res/configuration.toml index 97121103a..fa1692e3b 100644 --- a/example/cmd/device-simple/res/configuration.toml +++ b/example/cmd/device-simple/res/configuration.toml @@ -73,12 +73,8 @@ TokenFile = '/tmp/edgex/secrets/device-simple/secrets-token.json' [Device] DataTransform = true - InitCmd = '' - InitCmdArgs = '' MaxCmdOps = 128 MaxCmdValueLen = 256 - RemoveCmd = '' - RemoveCmdArgs = '' ProfilesDir = './res/profiles' DevicesDir = './res/devices' UpdateLastConnected = false diff --git a/internal/config/types.go b/internal/config/types.go index c4aeae02c..a16fb3f4c 100644 --- a/internal/config/types.go +++ b/internal/config/types.go @@ -24,11 +24,6 @@ type DeviceInfo struct { // DataTransform specifies whether or not the DS perform transformations // specified by value descriptor on a actuation or query command. DataTransform bool - // InitCmd specifies a device resource command which is automatically - // generated whenever a new device is added to the DS. - InitCmd string - // InitCmdArgs specify arguments to be used when building the InitCmd. - InitCmdArgs string // MaxCmdOps defines the maximum number of resource operations that // can be sent to a Driver in a single command. MaxCmdOps int @@ -36,11 +31,6 @@ type DeviceInfo struct { // result (including the value descriptor name) that can be returned // by a Driver. MaxCmdValueLen int - // InitCmd specifies a device resource command which is automatically - // generated whenever a new device is removed from the DS. - RemoveCmd string - // RemoveCmdArgs specify arguments to be used when building the RemoveCmd. - RemoveCmdArgs string // ProfilesDir specifies a directory which contains device profiles // files which should be imported on startup. ProfilesDir string