Skip to content

Commit 6bbc8e9

Browse files
committed
[INTERNAL] ResourceInfoList: Remove obsolete function getDebugName
1 parent 40a9032 commit 6bbc8e9

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

lib/lbt/resources/ResourceInfoList.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
const ResourceInfo = require("./ResourceInfo");
22

33
const DEBUG_RESOURCES_PATTERN = /-dbg((?:\.view|\.fragment|\.controller|\.designtime|\.support)?\.js|\.css)$/;
4-
const RESOURCES_PATTERN = /((?:\.view|\.fragment|\.controller|\.designtime|\.support)?\.js|\.css)$/;
54

65
/**
76
* A list of ResourceInfo objects, suitable for (but not dependent on) JSON serialization.
@@ -114,15 +113,6 @@ class ResourceInfoList {
114113
}
115114
return null;
116115
}
117-
118-
static getDebugName(path) {
119-
if ( RESOURCES_PATTERN.test(path) ) {
120-
if (!path.replace(RESOURCES_PATTERN, "").endsWith("-dbg")) {
121-
return path.replace( RESOURCES_PATTERN, "-dbg$1");
122-
}
123-
}
124-
return null;
125-
}
126116
}
127117

128118
module.exports = ResourceInfoList;

0 commit comments

Comments
 (0)