This is an automated email from the ASF dual-hosted git repository.

zrhoffman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git


The following commit(s) were added to refs/heads/master by this push:
     new 9c2003a84c Fix t3c obsolete warning (#6927)
9c2003a84c is described below

commit 9c2003a84c450e9d1471a761918e07d5e152de9a
Author: Robert O Butts <[email protected]>
AuthorDate: Mon Jun 27 12:11:30 2022 -0600

    Fix t3c obsolete warning (#6927)
---
 lib/go-atscfg/meta.go | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/lib/go-atscfg/meta.go b/lib/go-atscfg/meta.go
index 537b1bafba..cbd23aa99d 100644
--- a/lib/go-atscfg/meta.go
+++ b/lib/go-atscfg/meta.go
@@ -74,11 +74,6 @@ func MakeConfigFilesList(
        atsMajorVer, verWarns := getATSMajorVersion(serverParams)
        warnings = append(warnings, verWarns...)
 
-       tmURL, tmReverseProxyURL := getTOURLAndReverseProxy(globalParams)
-       if tmURL == "" {
-               warnings = append(warnings, "global tm.url parameter missing or 
empty! Setting empty in meta config!")
-       }
-
        dses, dsWarns := filterConfigFileDSes(server, deliveryServices, 
deliveryServiceServers)
        warnings = append(warnings, dsWarns...)
 
@@ -134,7 +129,7 @@ locationParamsFor:
                configFiles = append(configFiles, atsCfg)
        }
 
-       configFiles, configDirWarns, err := addMetaObjConfigDir(configFiles, 
configDir, server, tmURL, tmReverseProxyURL, locationParams, uriSignedDSes, 
dses, cacheGroupArr, topologies, atsMajorVer)
+       configFiles, configDirWarns, err := addMetaObjConfigDir(configFiles, 
configDir, server, locationParams, uriSignedDSes, dses, cacheGroupArr, 
topologies, atsMajorVer)
        warnings = append(warnings, configDirWarns...)
        return configFiles, warnings, err
 }
@@ -148,8 +143,6 @@ func addMetaObjConfigDir(
        configFiles []CfgMeta,
        configDir string,
        server *Server,
-       tmURL string, // global tm.url Parameter
-       tmReverseProxyURL string, // global tm.rev_proxy.url Parameter
        locationParams map[string]configProfileParams, // 
map[configFile]params; 'location' and 'URL' Parameters on serverHostName's 
Profile
        uriSignedDSes []tc.DeliveryServiceName,
        dses map[tc.DeliveryServiceName]DeliveryService,

Reply via email to