Skip to content

Commit

Permalink
Delete deprecated EditHistory component and other legacy code
Browse files Browse the repository at this point in the history
  • Loading branch information
cgsunkel committed Feb 26, 2024
1 parent 82d44e9 commit 418bca5
Show file tree
Hide file tree
Showing 12 changed files with 1 addition and 411 deletions.
25 changes: 0 additions & 25 deletions src/apps/investments/controllers/edit-history.js

This file was deleted.

2 changes: 0 additions & 2 deletions src/apps/investments/controllers/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
const create = require('./create')
const editHistory = require('./edit-history')

module.exports = {
create,
editHistory,
}
10 changes: 0 additions & 10 deletions src/apps/investments/repos.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,6 @@ function getInvestment(req, investmentId) {
)
}

function getInvestmentProjectAuditLog(req, investmentId, page = 1) {
const limit = 10
const offset = limit * (page - 1)
return authorisedRequest(req, {
url: `${config.apiRoot}/v3/investment/${investmentId}/audit`,
qs: { limit, offset },
})
}

module.exports = {
getInvestment,
getInvestmentProjectAuditLog,
}
7 changes: 1 addition & 6 deletions src/apps/investments/router-projects.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const {

const { shared } = require('./middleware')

const { create, editHistory } = require('./controllers')
const { create } = require('./controllers')

const { renderAddEvidence } = require('./apps/evidence/controllers/create')
const { postUpload } = require('../documents/middleware/upload')
Expand All @@ -35,11 +35,6 @@ router.get(
exportCollection('investment_project')
)

router.get(
urls.investments.editHistory.data.route,
editHistory.fetchProjectsHistoryHandler
)

// Add investment from Companies
router.get('/create/:companyId?', create.start.renderCreatePage)

Expand Down
64 changes: 0 additions & 64 deletions src/apps/investments/transformers/__test__/edit-history.test.js

This file was deleted.

40 changes: 0 additions & 40 deletions src/apps/investments/transformers/edit-history.js

This file was deleted.

21 changes: 0 additions & 21 deletions src/apps/investments/types.js

This file was deleted.

93 changes: 0 additions & 93 deletions src/client/components/EditHistory/EditHistory.jsx

This file was deleted.

62 changes: 0 additions & 62 deletions src/client/components/EditHistory/EditHistoryChangeList.jsx

This file was deleted.

Loading

0 comments on commit 418bca5

Please sign in to comment.