cleanup: remove unused methods and variables
This commit is contained in:
@@ -19,8 +19,6 @@ export interface CommandGroup {
|
|||||||
tags: string[]; // command category tag(s)
|
tags: string[]; // command category tag(s)
|
||||||
}
|
}
|
||||||
|
|
||||||
const githubFunctionUrl = "https://git.jabber.space/devs/cproof/src/branch/master/src/command/cmd_defs.c";
|
|
||||||
|
|
||||||
export class CommandParser {
|
export class CommandParser {
|
||||||
private buffer: string;
|
private buffer: string;
|
||||||
private readonly preamblePattern: RegExp =
|
private readonly preamblePattern: RegExp =
|
||||||
@@ -142,19 +140,6 @@ export class CommandParser {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
private capitalizeFirstLetter(str: string) {
|
|
||||||
if (!str) return "";
|
|
||||||
if (str.charAt(0) === "/") {
|
|
||||||
if (str.length > 1) {
|
|
||||||
return str.charAt(0) + str.charAt(1).toUpperCase() + str.slice(2);
|
|
||||||
} else {
|
|
||||||
return str;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
toMD() {
|
toMD() {
|
||||||
let stream = "";
|
let stream = "";
|
||||||
const output: MDOutput = { filename: "command-reference.md", buffer: "" };
|
const output: MDOutput = { filename: "command-reference.md", buffer: "" };
|
||||||
@@ -204,10 +189,6 @@ export class CommandParser {
|
|||||||
return `${isChild ? "####" : "##"} ${!isChild ? "`" : ""}${sectionName}${!isChild ? "`" : ""}\n\n`;
|
return `${isChild ? "####" : "##"} ${!isChild ? "`" : ""}${sectionName}${!isChild ? "`" : ""}\n\n`;
|
||||||
}
|
}
|
||||||
|
|
||||||
private writeGenericBlock(blockName: string, content: string) {
|
|
||||||
return `**${blockName}** ${content}<br/>\n`;
|
|
||||||
}
|
|
||||||
|
|
||||||
private writeSynopsisBlock(syntaxList: string[]) {
|
private writeSynopsisBlock(syntaxList: string[]) {
|
||||||
let stream = "";
|
let stream = "";
|
||||||
// No need for Synopsis section, it's self-explanatory
|
// No need for Synopsis section, it's self-explanatory
|
||||||
|
|||||||
Reference in New Issue
Block a user