Commit 9587a0d8 authored by rockyl's avatar rockyl

编辑器版本更新

parent 9c04420d
...@@ -82,36 +82,6 @@ function deleteUnusedData(processes) { ...@@ -82,36 +82,6 @@ function deleteUnusedData(processes) {
} }
} }
function findDepPids(list, process) {
if (process.sub) {
for (let key in process.sub) {
let p = process.sub[key];
if (!list.includes(p.meta)) {
list.push(p.meta);
}
}
}
}
function findDepPidsBat(list, processes) {
for (let process of processes) {
findDepPids(list, process);
}
}
async function addBuiltinProcesses(list, ids, getProcesses) {
let newPids = [];
if (ids.length > 0) {
let processes = await getProcesses(ids);
for (let processData of processes) {
let process = JSON.parse(processData);
list.push(process);
findDepPids(newPids, process);
}
}
return newPids;
}
function pageTemplate(tpl, options, version) { function pageTemplate(tpl, options, version) {
const params = { const params = {
version, version,
...@@ -130,12 +100,3 @@ function fillTemplate(tpl, options, params) { ...@@ -130,12 +100,3 @@ function fillTemplate(tpl, options, params) {
options.newTpl = tpl; options.newTpl = tpl;
} }
function traverseNode(root, callback) {
callback(root);
if (root.children && root.children.length > 0) {
for (let childNode of root.children) {
traverseNode(childNode, callback);
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment