Skip to content

Commit 9b378f0

Browse files
committed
Remove unused function
1 parent 901ac5c commit 9b378f0

1 file changed

Lines changed: 0 additions & 19 deletions

File tree

server/src/septic/septicFunction.ts

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ function createFunctionFromNode(name: string, node: SepticFunctionNode, maxDepth
113113
sorted.push(n);
114114
}
115115
visit(node, 0);
116-
117116
const lines = sorted.map((child) => {
118117
return {
119118
name: child.name,
@@ -131,22 +130,4 @@ function createFunctionFromNode(name: string, node: SepticFunctionNode, maxDepth
131130
lines: lines,
132131
inputs: Array.from(inputs),
133132
};
134-
}
135-
136-
export function printFunctionInfo(func: SepticFunction) {
137-
console.log(`function ${func.name}(${func.inputs.join(", ")})`);
138-
func.lines.forEach((line, idx) => {
139-
if (idx === func.lines.length - 1) {
140-
// Last line: print as return statement
141-
const textLine = line.doc
142-
? ` return ${line.alg} #${line.doc}`
143-
: ` return ${line.alg}`;
144-
console.log(textLine);
145-
} else {
146-
const textLine = line.doc
147-
? ` ${line.name} = ${line.alg} #${line.doc}`
148-
: ` ${line.name} = ${line.alg}`;
149-
console.log(textLine);
150-
}
151-
});
152133
}

0 commit comments

Comments
 (0)