Skip to content

Commit

Permalink
Merge pull request #1663 from dappnode/pablo/remove-unused-code
Browse files Browse the repository at this point in the history
remove unused code from dappmanager pkg
  • Loading branch information
pablomendezroyo authored Oct 31, 2023
2 parents eb4f271 + b63ba3e commit 25ef373
Show file tree
Hide file tree
Showing 22 changed files with 62 additions and 516 deletions.
4 changes: 0 additions & 4 deletions packages/dappmanager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
"@types/semver": "^7.3.13",
"@types/sinon": "^7.0.13",
"@types/socket.io": "^3.0.2",
"@types/tar-stream": "^2.1.0",
"ajv": "^6.10.2",
"async-retry": "^1.3.1",
"bcryptjs": "^2.4.3",
Expand All @@ -78,7 +77,6 @@
"http-proxy": "^1.18.0",
"ipfs-http-client": "^60.0.0",
"is-ip": "^3.0.0",
"is-ipfs": "^8.0.1",
"lodash-es": "^4.17.21",
"memoizee": "^0.4.14",
"monero-rpc": "^0.5.0",
Expand All @@ -90,8 +88,6 @@
"prom-client": "^14.1.0",
"semver": "^7.3.8",
"socket.io": "^4.5.1",
"tar-stream": "^2.1.4",
"timestring": "^6.0.0",
"tweetnacl": "^1.0.1",
"tweetnacl-util": "^0.15.0"
},
Expand Down
7 changes: 0 additions & 7 deletions packages/dappmanager/src/api/auth/errors.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,12 @@
import { HttpError } from "../utils.js";

const ERROR_NOT_ADMIN_IP = "NOT_ADMIN_IP";
const ERROR_NOT_REGISTERED = "NOT_REGISTERED";
const ERROR_NOT_LOGGED_IN = "NOT_LOGGED_IN";
const ERROR_NOT_LOGGED_IN_NO_COOKIE = "NOT_LOGGED_IN_NO_COOKIE";
const ERROR_MISSING_CREDENTIALS = "MISSING_CREDENTIALS";
const ERROR_WRONG_CREDENTIALS = "WRONG_CREDENTIALS";
const ERROR_ALREADY_REGISTERED = "ALREADY_REGISTERED";

export class NotAdminIpError extends HttpError {
constructor() {
super({ name: ERROR_NOT_ADMIN_IP, statusCode: 401 });
}
}

export class NotRegisteredError extends HttpError {
constructor() {
super({ name: ERROR_NOT_REGISTERED, statusCode: 401 });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@ export * from "./decodeContent.js";
export * from "./decodeContentHash.js";
export * from "./decodeDnsLink.js";
export * from "./isEmpty.js";
export * from "./sanitizeIpfsPath.js";
19 changes: 0 additions & 19 deletions packages/dappmanager/src/daemons/natRenewal/defaultPortsToOpen.ts

This file was deleted.

61 changes: 0 additions & 61 deletions packages/dappmanager/src/utils/chunkify.ts

This file was deleted.

35 changes: 0 additions & 35 deletions packages/dappmanager/src/utils/distributedFile.ts

This file was deleted.

23 changes: 0 additions & 23 deletions packages/dappmanager/src/utils/highestVersion.ts

This file was deleted.

27 changes: 0 additions & 27 deletions packages/dappmanager/src/utils/logs.ts

This file was deleted.

17 changes: 0 additions & 17 deletions packages/dappmanager/src/utils/promises.ts

This file was deleted.

45 changes: 0 additions & 45 deletions packages/dappmanager/src/utils/retry.ts

This file was deleted.

14 changes: 0 additions & 14 deletions packages/dappmanager/src/utils/sanitize.ts

This file was deleted.

21 changes: 0 additions & 21 deletions packages/dappmanager/src/utils/schema.ts

This file was deleted.

47 changes: 0 additions & 47 deletions packages/dappmanager/src/utils/tarExtractSingleFile.ts

This file was deleted.

29 changes: 0 additions & 29 deletions packages/dappmanager/src/utils/timeout.ts

This file was deleted.

Loading

0 comments on commit 25ef373

Please sign in to comment.