Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
- cleanup unused code
  • Loading branch information
StephenHodgson authored Aug 12, 2024
1 parent 5ff5b2a commit c9ebafb
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 46 deletions.
23 changes: 2 additions & 21 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28691,7 +28691,7 @@ module.exports = { Deactivate }
/***/ 917:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {

const { ResolveGlobPath, GetEditorRootPath, GetHubRootPath } = __nccwpck_require__(4345);
const { ResolveGlobPath, GetHubRootPath } = __nccwpck_require__(4345);
const core = __nccwpck_require__(2186);
const exec = __nccwpck_require__(1514);
const fs = (__nccwpck_require__(7147).promises);
Expand Down Expand Up @@ -28905,25 +28905,6 @@ async function GetHubRootPath(hubPath) {
return hubRootPath;
}

async function GetEditorRootPath(editorPath) {
core.debug(`searching for editor root path: ${editorPath}`);
let editorRootPath = editorPath;
switch (process.platform) {
case 'darwin':
editorRootPath = path.join(editorPath, '../../../');
break;
case 'win32':
editorRootPath = path.join(editorPath, '../');
break
case 'linux':
editorRootPath = path.join(editorPath, '../');
break;
}
await fs.access(editorRootPath, fs.constants.R_OK);
core.debug(`found editor root path: ${editorRootPath}`);
return editorRootPath;
}

async function ResolveGlobPath(globs) {
const globPath = path.join(...globs);
const result = await findGlobPattern(globPath);
Expand All @@ -28943,7 +28924,7 @@ async function findGlobPattern(pattern) {
}
}

module.exports = { ResolveGlobPath, GetEditorRootPath, GetHubRootPath };
module.exports = { ResolveGlobPath, GetHubRootPath };


/***/ }),
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "activate-unity-license",
"version": "1.0.2",
"version": "1.0.3",
"description": "A GitHub Action to activate a Unity Game Engine license for CI/CD workflows.",
"author": "buildalon",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/licensing-client.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { ResolveGlobPath, GetEditorRootPath, GetHubRootPath } = require('./utility');
const { ResolveGlobPath, GetHubRootPath } = require('./utility');
const core = require('@actions/core');
const exec = require('@actions/exec');
const fs = require("fs").promises;
Expand Down
21 changes: 1 addition & 20 deletions src/utility.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,6 @@ async function GetHubRootPath(hubPath) {
return hubRootPath;
}

async function GetEditorRootPath(editorPath) {
core.debug(`searching for editor root path: ${editorPath}`);
let editorRootPath = editorPath;
switch (process.platform) {
case 'darwin':
editorRootPath = path.join(editorPath, '../../../');
break;
case 'win32':
editorRootPath = path.join(editorPath, '../');
break
case 'linux':
editorRootPath = path.join(editorPath, '../');
break;
}
await fs.access(editorRootPath, fs.constants.R_OK);
core.debug(`found editor root path: ${editorRootPath}`);
return editorRootPath;
}

async function ResolveGlobPath(globs) {
const globPath = path.join(...globs);
const result = await findGlobPattern(globPath);
Expand All @@ -58,4 +39,4 @@ async function findGlobPattern(pattern) {
}
}

module.exports = { ResolveGlobPath, GetEditorRootPath, GetHubRootPath };
module.exports = { ResolveGlobPath, GetHubRootPath };

0 comments on commit c9ebafb

Please sign in to comment.