Skip to content

Commit 84fa8c4

Browse files
committed
Cleaned up a bunch of dead code
1 parent 055c7dd commit 84fa8c4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+130
-882
lines changed

src/analytics-node-client/src/types.ts

-14
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,3 @@
1-
export interface AnalyticsClientInit {
2-
env: any;
3-
product: any;
4-
subproduct?: any;
5-
datacenter?: any;
6-
version?: any;
7-
origin: any;
8-
flushAt?: number;
9-
flushInterval?: number;
10-
baseUrl?: string;
11-
enable?: boolean;
12-
deviceId?: string;
13-
}
14-
151
export interface BaseEvent {
162
userIdType: any;
173
userId: any;

src/atlclients/authInfo.ts

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use strict';
2-
31
import { ATLASCODE_TEST_HOST } from '../../src/constants';
42

53
export enum AuthChangeType {

src/atlclients/authenticator.ts

-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
import { AccessibleResource, DetailedSiteInfo, OAuthProvider } from './authInfo';
22

3-
export interface Tokens {
4-
accessToken: string;
5-
refreshToken: string;
6-
}
7-
83
/**
94
* Authenticator encapsulates the information needed to authenticate with an OAuth service.
105
*/

src/atlclients/strategy.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export abstract class Strategy {
6464
abstract tokenRefreshData(refreshToken: string): string;
6565
}
6666

67-
export class JiraStrategy extends Strategy {
67+
class JiraStrategy extends Strategy {
6868
public constructor(data: StrategyProps) {
6969
super(data);
7070
}
@@ -117,7 +117,7 @@ export class JiraStrategy extends Strategy {
117117
}
118118
}
119119

120-
export class JiraDevStrategy extends JiraStrategy {
120+
class JiraDevStrategy extends JiraStrategy {
121121
public tokenAuthorizationData(code: string): string {
122122
const data = JSON.stringify({
123123
grant_type: 'authorization_code',
@@ -149,7 +149,7 @@ export class JiraDevStrategy extends JiraStrategy {
149149
}
150150
}
151151

152-
export class BitbucketStrategy extends Strategy {
152+
class BitbucketStrategy extends Strategy {
153153
public constructor(data: StrategyProps) {
154154
super(data);
155155
}

src/bitbucket/bitbucket-cloud/bbIssues.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
import { CloudPullRequestApi } from './pullRequests';
1515

1616
const defaultPageLength = 25;
17-
export const maxItemsSupported = {
17+
const maxItemsSupported = {
1818
comments: 100,
1919
changes: 100,
2020
};

src/bitbucket/bitbucket-cloud/pullRequests.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export const maxItemsSupported = {
3434
reviewers: 100,
3535
buildStatuses: 100,
3636
};
37-
export const defaultPagelen = 25;
37+
const defaultPagelen = 25;
3838

3939
const mergeStrategyLabels: Record<string, string> = {
4040
merge_commit: 'Merge commit',

src/bitbucket/model.ts

+1-6
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ export interface PullRequest {
259259
// sourceRemote: sourceRemote,
260260
}
261261

262-
export const emptyPullRequestData: PullRequestData = {
262+
const emptyPullRequestData: PullRequestData = {
263263
siteDetails: emptySiteInfo,
264264
id: '',
265265
version: 0,
@@ -309,11 +309,6 @@ export interface PaginatedBitbucketIssues {
309309
next?: string;
310310
}
311311

312-
export interface PaginatedBranchNames {
313-
data: string[];
314-
next?: string;
315-
}
316-
317312
export type BitbucketIssue = {
318313
site: BitbucketSite;
319314
data: BitbucketIssueData;

src/codebucket/command/registerCommands.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { OpenInBitbucketCommand } from './command-open';
44
import { OpenBitbucketChangesetCommand } from './command-open-changeset';
55
import { OpenBitbucketPullRequestCommand } from './command-open-pullrequest';
66

7-
export enum CodebucketCommands {
7+
enum CodebucketCommands {
88
OpenInBitbucket = 'atlascode.bb.openInBitbucket',
99
OpenChangeset = 'atlascode.bb.openChangeset',
1010
ViewPullRequest = 'atlascode.bb.viewPullRequest',

src/config/configuration.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
'use strict';
21
export * from './model';
32

43
import {

src/config/model.ts

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use strict';
2-
31
import { AccessibleResourceV1, emptyAccessibleResourceV1 } from '../atlclients/authInfo';
42

53
export enum SettingSource {

src/constants.ts

-7
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,7 @@ export const JiraCreateSiteAndProjectKey = 'jira.lastCreateSiteAndProject';
55
export const JiraV1WorkingProjectConfigurationKey = 'jira.workingProject';
66
export const JiraEnabledKey = 'jira.enabled';
77
export const BitbucketEnabledKey = 'bitbucket.enabled';
8-
export const OldJQLKey = 'jira.customJql';
9-
export const JiraJQLListKey = 'jira.jqlList';
108
export const JiraHoverProviderConfigurationKey = 'jira.hover.enabled';
11-
export const BitbucketRelatedIssuesConfigurationKey = 'bitbucket.explorer.relatedJiraIssues.enabled';
12-
export const BitbucketContextMenusConfigurationKey = 'bitbucket.contextMenus.enabled';
139
export const CustomJQLTreeId = 'atlascode.views.jira.customJql';
1410
export const PullRequestTreeViewId = 'atlascode.views.bb.pullrequestsTreeView';
1511
export const PipelinesTreeViewId = 'atlascode.views.bb.pipelinesTreeView';
@@ -19,10 +15,7 @@ export const GlobalStateVersionKey = 'atlascodeVersion';
1915
export const AxiosUserAgent = 'atlascode/2.x axios/0.19.2';
2016

2117
export const bbAPIConnectivityError = new Error('cannot connect to bitbucket api');
22-
export const jiraAPIConnectivityError = new Error('cannot connect to jira api');
2318
export const cannotGetClientFor = 'cannot get client for';
2419

25-
export const AuthInfoVersionKey = 'authInfoVersion';
26-
2720
export const ATLASCODE_TEST_USER_EMAIL = '[email protected]';
2821
export const ATLASCODE_TEST_HOST = 'axontest2025.atlassian.net';

0 commit comments

Comments
 (0)