Skip to content

Commit

Permalink
Remove unnecessary codes (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
matsuo committed Jan 7, 2024
1 parent 7e0e88a commit 101e2f4
Showing 1 changed file with 0 additions and 42 deletions.
42 changes: 0 additions & 42 deletions fmcsadmin.go
Original file line number Diff line number Diff line change
Expand Up @@ -2051,17 +2051,6 @@ func (c *cli) Run(args []string) int {
if results[7] == "true" {
parallelBackupEnabled = true
}
/*
persistCacheEnabled := false
if results[8] == "true" {
persistCacheEnabled = true
}
syncPersistCacheEnabled := false
if results[9] == "true" {
syncPersistCacheEnabled = true
}
*/

if results[0] != "" || results[1] != "" || results[2] != "" || results[3] != "" || results[4] != "" || secureFilesOnlyFlag != "" || results[6] != "" || results[7] != "" {
if results[0] != "" {
Expand Down Expand Up @@ -2132,21 +2121,6 @@ func (c *cli) Run(args []string) int {
} else {
exitStatus = 3
}
/*
case "persistcacheenabled":
if version >= 20.1 {
printOptions = append(printOptions, "persistcacheenabled")
} else {
exitStatus = 3
}
case "syncpersistcache":
if version >= 20.1 {
printOptions = append(printOptions, "syncpersistcache")
} else {
exitStatus = 3
}
*/
default:
exitStatus = 3
}
Expand All @@ -2168,12 +2142,6 @@ func (c *cli) Run(args []string) int {
if version >= 19.5 {
printOptions = append(printOptions, "parallelbackupenabled")
}
/*
if version >= 20.1 {
printOptions = append(printOptions, "persistcacheenabled")
printOptions = append(printOptions, "syncpersistcache")
}
*/
}
if exitStatus == 0 {
if results[0] != "" || results[1] != "" || results[2] != "" || results[3] != "" || results[4] != "" {
Expand Down Expand Up @@ -2621,16 +2589,6 @@ func parseServerConfigurationSettings(c *cli, str []string) ([]string, int) {
} else {
parallelBackupEnabled = "false"
}
/*
} else if regexp.MustCompile(`persistcacheenabled=(.*)`).Match([]byte(val)) {
if strings.ToLower(str[i]) == "persistcacheenabled=" {
exitStatus = 10001
} else if strings.ToLower(str[i]) == "persistcacheenabled=true" || (regexp.MustCompile(`persistcacheenabled=([+|-])?(\d)+`).Match([]byte(str[i])) && str[i] != "persistcacheenabled=0" && str[i] != "persistcacheenabled=+0" && str[i] != "persistcacheenabled=-0") {
persistCacheEnabled = "true"
} else {
persistCacheEnabled = "false"
}
*/
} else {
exitStatus = 10001
}
Expand Down

0 comments on commit 101e2f4

Please sign in to comment.