You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by da...@apache.org on 2017/01/03 19:28:17 UTC

[07/13] incubator-trafficcontrol git commit: no need to return the expensive call to build example_urls

no need to return the expensive call to build example_urls


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/0c066aba
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/0c066aba
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/0c066aba

Branch: refs/heads/master
Commit: 0c066abaa2732c5d334e170753d6e9e860ebc276
Parents: b2cc48a
Author: Jeremy Mitchell <mi...@gmail.com>
Authored: Thu Dec 29 12:14:23 2016 -0700
Committer: Jeremy Mitchell <mi...@gmail.com>
Committed: Thu Dec 29 12:14:23 2016 -0700

----------------------------------------------------------------------
 traffic_ops/app/lib/API/Deliveryservice.pm | 5 -----
 1 file changed, 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/0c066aba/traffic_ops/app/lib/API/Deliveryservice.pm
----------------------------------------------------------------------
diff --git a/traffic_ops/app/lib/API/Deliveryservice.pm b/traffic_ops/app/lib/API/Deliveryservice.pm
index 2431f77..99054a3 100644
--- a/traffic_ops/app/lib/API/Deliveryservice.pm
+++ b/traffic_ops/app/lib/API/Deliveryservice.pm
@@ -551,10 +551,6 @@ sub get_deliveryservices_by_serverId {
 	my @data;
 	if ( defined($deliveryservices) ) {
 		while ( my $row = $deliveryservices->next ) {
-			my $cdn_domain   = $self->get_cdn_domain_by_ds_id( $row->id );
-			my $regexp_set   = &UI::DeliveryService::get_regexp_set( $self, $row->id );
-			my @example_urls = &UI::DeliveryService::get_example_urls( $self, $row->id, $regexp_set, $row, $cdn_domain, $row->protocol );
-
 			push(
 				@data, {
 					"active"                   => \$row->active,
@@ -570,7 +566,6 @@ sub get_deliveryservices_by_serverId {
 					"dnsBypassTtl"             => $row->dns_bypass_ttl,
 					"dscp"                     => $row->dscp,
 					"edgeHeaderRewrite"        => $row->edge_header_rewrite,
-					"exampleURLs"              => \@example_urls,
 					"geoLimitRedirectURL"      => $row->geolimit_redirect_url,
 					"geoLimit"                 => $row->geo_limit,
 					"geoLimitCountries"        => $row->geo_limit_countries,