Skip to content

Commit

Permalink
Remove inner experimental #ifdefs.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 323677067
  • Loading branch information
Google Play Team authored and thanwah committed Jul 29, 2020
1 parent fcae2bd commit 0cd1334
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@ private void SetInitialStatus()

private IEnumerator CoLoadAssetPackBatch()
{
#if PLAY_ASSET_DELIVERY_EXPERIMENTAL
var assetPackNames = Assets.Select(a => a.AssetPackName).Distinct().ToList();
_batchRequest = PlayAssetDelivery.RetrieveAssetPackBatchAsync(assetPackNames);
_requestInProgress = true;
Expand Down Expand Up @@ -185,12 +184,6 @@ private IEnumerator CoLoadAssetPackBatch()
}

_requestInProgress = false;
#else
// Assign values to avoid unassigned variable warning.
_batchRequest = null;
_requestInProgress = false;
throw new Exception("Experimental Play Asset Delivery methods are disabled.");
#endif
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,6 @@ private void SetInitialStatus()

private IEnumerator DownloadAssetPackCo()
{
#if PLAY_ASSET_DELIVERY_EXPERIMENTAL
_request = PlayAssetDelivery.RetrieveAssetPackAsync(AssetPackName);
_requestInProgress = true;

Expand Down Expand Up @@ -238,12 +237,6 @@ private IEnumerator DownloadAssetPackCo()
}

_requestInProgress = false;
#else
// Assign values to avoid unassigned variable warning.
_request = null;
_requestInProgress = false;
throw new Exception("Experimental Play Asset Delivery methods are disabled.");
#endif
}

private IEnumerator LoadAssetBundleFromRequest()
Expand Down

0 comments on commit 0cd1334

Please sign in to comment.