From ac74066f0e4f3d62f2d4645c3fa34b88c13958d1 Mon Sep 17 00:00:00 2001 From: Chris Date: Tue, 19 Sep 2017 18:31:35 -0500 Subject: remove einterface gets (#7455) --- utils/config.go | 8 -------- 1 file changed, 8 deletions(-) (limited to 'utils') diff --git a/utils/config.go b/utils/config.go index 94737adc8..a4b475449 100644 --- a/utils/config.go +++ b/utils/config.go @@ -689,11 +689,3 @@ func Desanitize(cfg *model.Config) { cfg.SqlSettings.DataSourceSearchReplicas[i] = Cfg.SqlSettings.DataSourceSearchReplicas[i] } } - -func IsLeader() bool { - if IsLicensed() && *Cfg.ClusterSettings.Enable && einterfaces.GetClusterInterface() != nil { - return einterfaces.GetClusterInterface().IsLeader() - } else { - return true - } -} -- cgit v1.2.3-1-g7c22