@@ -88,11 +88,6 @@ import {
88
88
AdminModifyRoleOrPermissionRequest ,
89
89
WorkspaceAndInstance ,
90
90
} from "@gitpod/gitpod-protocol/lib/admin-protocol" ;
91
- import {
92
- GetLicenseInfoResult ,
93
- LicenseInfo ,
94
- LicenseValidationResult ,
95
- } from "@gitpod/gitpod-protocol/lib/license-protocol" ;
96
91
import { GitpodFileParser } from "@gitpod/gitpod-protocol/lib/gitpod-file-parser" ;
97
92
import { ErrorCodes } from "@gitpod/gitpod-protocol/lib/messaging/error" ;
98
93
import { Cancelable } from "@gitpod/gitpod-protocol/lib/util/cancelable" ;
@@ -3252,22 +3247,6 @@ export class GitpodServerImpl implements GitpodServerWithTracing, Disposable {
3252
3247
return await this . telemetryDataProvider . getTelemetryData ( ) ;
3253
3248
}
3254
3249
3255
- async getLicenseInfo ( ) : Promise < GetLicenseInfoResult > {
3256
- throw new ResponseError ( ErrorCodes . EE_FEATURE , `Licensing is implemented in Gitpod's Enterprise Edition` ) ;
3257
- }
3258
-
3259
- async adminGetLicense ( ctx : TraceContext ) : Promise < LicenseInfo > {
3260
- traceAPIParams ( ctx , { } ) ;
3261
-
3262
- await this . guardAdminAccess ( "adminGetLicense" , { } , Permission . ADMIN_API ) ;
3263
-
3264
- const userCount = await this . userDB . getUserCount ( true ) ;
3265
-
3266
- return {
3267
- userCount : userCount ,
3268
- } ;
3269
- }
3270
-
3271
3250
protected censorUser ( user : User ) : User {
3272
3251
const res = { ...user } ;
3273
3252
delete res . additionalData ;
@@ -3283,10 +3262,6 @@ export class GitpodServerImpl implements GitpodServerWithTracing, Disposable {
3283
3262
return res ;
3284
3263
}
3285
3264
3286
- async validateLicense ( ctx : TraceContext ) : Promise < LicenseValidationResult > {
3287
- throw new ResponseError ( ErrorCodes . EE_FEATURE , `Licensing is implemented in Gitpod's Enterprise Edition` ) ;
3288
- }
3289
-
3290
3265
async getOwnAuthProviders ( ctx : TraceContext ) : Promise < AuthProviderEntry [ ] > {
3291
3266
const redacted = ( entry : AuthProviderEntry ) => AuthProviderEntry . redact ( entry ) ;
3292
3267
let userId : string ;
0 commit comments