Skip to content

Commit

Permalink
[service] Remove httpClient
Browse files Browse the repository at this point in the history
  • Loading branch information
Rick Saccoccia committed Nov 4, 2024
1 parent 45b317b commit e66b6de
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 11 deletions.
1 change: 0 additions & 1 deletion plugins/arcgis/service/src/ArcGISIdentityManagerFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ const OAuthIdentityManagerFactory: ArcGISIdentityManagerFactory = {
server: server
})
} else if (refreshToken && new Date(refreshTokenExpires || 0) > new Date()) {
// TODO: find a way without using constructor nor httpClient
const url = `${portal}/oauth2/token?client_id=${clientId}&refresh_token=${refreshToken}&grant_type=refresh_token`
try {
const response = await request(url, {
Expand Down
7 changes: 0 additions & 7 deletions plugins/arcgis/service/src/FeatureService.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { LayerInfoResult } from "./LayerInfoResult";
import { FeatureServiceResult } from "./FeatureServiceResult";
import { HttpClient } from "./HttpClient";
import { getIdentityManager } from "./ArcGISIdentityManagerFactory"
import { ArcGISIdentityManager, request } from "@esri/arcgis-rest-request"
import { queryFeatures, applyEdits, IQueryFeaturesOptions } from "@esri/arcgis-rest-feature-service";
Expand All @@ -11,11 +10,6 @@ import { FeatureServiceConfig } from "./ArcGISConfig";
*/
export class FeatureService {

/**
* Used to make the get request about the feature layer.
*/
// private _httpClient: HttpClient;

/**
* Used to log messages.
*/
Expand All @@ -32,7 +26,6 @@ export class FeatureService {
constructor(console: Console, config: FeatureServiceConfig, identityManager: ArcGISIdentityManager) {
this._config = config;
this._identityManager = identityManager;
// this._httpClient = new HttpClient(console, token);
this._console = console;
}

Expand Down
3 changes: 0 additions & 3 deletions plugins/arcgis/service/src/FeatureServiceAdmin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -475,9 +475,6 @@ export class FeatureServiceAdmin {
}).catch((error) => {
console.log('Error: ' + error)
});

console.log('Remove me')

}

/**
Expand Down

0 comments on commit e66b6de

Please sign in to comment.