Skip to content

Commit

Permalink
chore: remove unused endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
philippfromme committed Nov 18, 2024
1 parent 22b03a4 commit 68316bc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 18 deletions.
2 changes: 0 additions & 2 deletions app/lib/workspace.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ class Workspace {

workspace.files = files;

workspace.endpoints = workspace.endpoints || [];

done(null, workspace);
});

Expand Down
15 changes: 5 additions & 10 deletions client/src/app/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,7 @@ const INITIAL_STATE = {
lintingState: {},
logEntries: [],
notifications: [],
currentModal: null,
endpoints: []
currentModal: null
};


Expand Down Expand Up @@ -1102,8 +1101,7 @@ export class App extends PureComponent {
recentTabs,
tabLoadingState,
tabState,
layout,
endpoints
layout
} = this.state;

const {
Expand Down Expand Up @@ -1136,8 +1134,7 @@ export class App extends PureComponent {
if (
activeTab !== prevState.activeTab ||
tabs !== prevState.tabs ||
layout !== prevState.layout ||
endpoints !== prevState.endpoints
layout !== prevState.layout
) {
this.workspaceChanged();
}
Expand Down Expand Up @@ -1191,15 +1188,13 @@ export class App extends PureComponent {
const {
layout,
tabs,
activeTab,
endpoints
activeTab
} = this.state;

return onWorkspaceChanged({
tabs,
activeTab,
layout,
endpoints
layout
});
};

Expand Down
8 changes: 2 additions & 6 deletions client/src/app/AppParent.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ const log = debug('AppParent');
const DEFAULT_CONFIG = {
activeFile: -1,
files: [],
layout: {},
endpoints: []
layout: {}
};


Expand Down Expand Up @@ -130,13 +129,10 @@ export default class AppParent extends PureComponent {

const layout = config.layout;

const endpoints = config.endpoints;

const workspaceConfig = {
files,
activeFile,
layout,
endpoints
layout
};

try {
Expand Down

0 comments on commit 68316bc

Please sign in to comment.