remove code

This commit is contained in:
白茶清欢 2022-06-12 17:47:55 +08:00
parent 8ee691e938
commit 3c9b925d73
1 changed files with 0 additions and 22 deletions

View File

@ -99,28 +99,6 @@ func (c *client) BatchAddWithConfigDir(cfgDir string) error {
return nil
}
// getMysqlCfgFileList 获取mysql配置文件列表
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 14:39 2022/6/9
func (c *client) getMysqlCfgFileList(cfgDir string) ([]string, error) {
filepathNames, _ := filepath.Glob(filepath.Join(cfgDir, "*"))
cfgFileList := make([]*cfgFile, 0)
for i := range filepathNames {
var (
err error
cfgInfo *cfgFile
)
if cfgInfo, err = c.getCfg(filepathNames[i]); nil != err {
return nil, err
}
cfgFileList = append(cfgFileList, cfgInfo)
}
return cfgFileList, nil
}
// getCfg 读取配置
//
// Author : go_developer@163.com<白茶清欢>