mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-07-09 16:00:59 +00:00
Dead-code sweep. Functions flagged unreachable by golang.org/x/tools/cmd/deadcode and confirmed unused across pulse, pulse-enterprise, pulse-pro and pulse-mobile by adversarial cross-repo verification. Cross-module reachability was checked explicitly (only pkg/ exported symbols are importable by other modules; internal/ packages and _test.go files are not). go build, go vet and test-compile all pass.
17 lines
342 B
Go
17 lines
342 B
Go
package licensing
|
|
|
|
import (
|
|
"os"
|
|
"strings"
|
|
)
|
|
|
|
func devModeFeatureEnabled(feature string) bool {
|
|
switch feature {
|
|
case FeatureMultiUser, FeatureWhiteLabel, FeatureUnlimited:
|
|
return false
|
|
case FeatureMultiTenant:
|
|
return strings.EqualFold(strings.TrimSpace(os.Getenv("PULSE_MULTI_TENANT_ENABLED")), "true")
|
|
default:
|
|
return true
|
|
}
|
|
}
|