@@ -48,9 +48,6 @@ import {BundleOptions} from './bundlingCalls/bundleExecutor';
4848 * @property {boolean= } isBundling - If set to false and the call is configured
4949 * for bundling, bundling is not performed.
5050 * @property {BackoffSettings= } longrunning - BackoffSettings used for polling.
51- * @property {Function= } promise - A constructor for a promise that implements the ES6
52- * specification of promise which will be used to create promises. If not
53- * provided, native promises will be used.
5451 * @example
5552 * // suppress bundling for bundled method.
5653 * api.bundlingMethod(
@@ -127,7 +124,6 @@ export interface CallOptions {
127124 bundleOptions ?: BundleOptions | null ;
128125 isBundling ?: boolean ;
129126 longrunning ?: BackoffSettings ;
130- promise ?: PromiseConstructor ;
131127}
132128
133129export class CallSettings {
@@ -142,7 +138,6 @@ export class CallSettings {
142138 bundleOptions ?: BundleOptions | null ;
143139 isBundling : boolean ;
144140 longrunning ?: BackoffSettings ;
145- promise : PromiseConstructor ;
146141
147142 /**
148143 * @param {Object } settings - An object containing parameters of this settings.
@@ -159,9 +154,6 @@ export class CallSettings {
159154 * in the page streaming request.
160155 * @param {Object } settings.otherArgs - Additional arguments to be passed to
161156 * the API calls.
162- * @param {Function= } settings.promise - A constructor for a promise that
163- * implements the ES6 specification of promise. If not provided, native
164- * promises will be used.
165157 *
166158 * @constructor
167159 */
@@ -178,7 +170,6 @@ export class CallSettings {
178170 this . isBundling = 'isBundling' in settings ? settings . isBundling ! : true ;
179171 this . longrunning =
180172 'longrunning' in settings ? settings . longrunning : undefined ;
181- this . promise = 'promise' in settings ? settings . promise ! : Promise ;
182173 }
183174
184175 /**
@@ -202,7 +193,6 @@ export class CallSettings {
202193 let otherArgs = this . otherArgs ;
203194 let isBundling = this . isBundling ;
204195 let longrunning = this . longrunning ;
205- let promise = this . promise ;
206196 if ( 'timeout' in options ) {
207197 timeout = options . timeout ! ;
208198 }
@@ -252,10 +242,6 @@ export class CallSettings {
252242 longrunning = options . longrunning ;
253243 }
254244
255- if ( 'promise' in options ) {
256- promise = options . promise ! ;
257- }
258-
259245 return new CallSettings ( {
260246 timeout,
261247 retry,
@@ -267,7 +253,6 @@ export class CallSettings {
267253 maxResults,
268254 otherArgs,
269255 isBundling,
270- promise,
271256 } ) ;
272257 }
273258}
@@ -613,8 +598,6 @@ export interface ClientConfig {
613598 * those codes.
614599 * @param {Object } otherArgs - the non-request arguments to be passed to the API
615600 * calls.
616- * @param {Function= } promise - A constructor for a promise that implements the
617- * ES6 specification of promise. If not provided, native promises will be used.
618601 * @return {Object } A mapping from method name to CallSettings, or null if the
619602 * service is not found in the config.
620603 */
@@ -623,8 +606,7 @@ export function constructSettings(
623606 clientConfig : ClientConfig ,
624607 configOverrides : ClientConfig ,
625608 retryNames : { } ,
626- otherArgs ?: { } ,
627- promise ?: PromiseConstructor
609+ otherArgs ?: { }
628610) {
629611 otherArgs = otherArgs || { } ;
630612 // tslint:disable-next-line no-any
@@ -679,7 +661,6 @@ export function constructSettings(
679661 ? createBundleOptions ( bundlingConfig )
680662 : null ,
681663 otherArgs,
682- promise : promise || Promise ,
683664 } ) ;
684665 }
685666
0 commit comments