Skip to content

Commit dbb8ab5

Browse files
committed
Remove files for Chapter 22
1 parent 84ceb0f commit dbb8ab5

File tree

5 files changed

+0
-217
lines changed

5 files changed

+0
-217
lines changed

code/draw_graph.js

Lines changed: 0 additions & 100 deletions
This file was deleted.

code/solutions/22_1_pathfinding.js

Lines changed: 0 additions & 20 deletions
This file was deleted.

code/solutions/22_2_timing.js

Lines changed: 0 additions & 16 deletions
This file was deleted.

code/solutions/22_3_optimizing.js

Lines changed: 0 additions & 50 deletions
This file was deleted.

src/chapter_info.js

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -115,37 +115,6 @@ dir.forEach(function(file) {
115115
output.push(chapter);
116116
});
117117

118-
output.push({
119-
title: "How JavaScript is so Fast",
120-
number: 22,
121-
start_code: "<!-- This chapter exists in the paper book, not in the online version -->\n\n<script>\n runLayout(forceDirected_simple, treeGraph(4, 4));\n</script>\n",
122-
include: ["code/draw_graph.js", "code/chapter/22_fast.js"],
123-
exercises: [
124-
{name: "Pathfinding",
125-
file: "code/solutions/22_1_pathfinding.js",
126-
number: 1,
127-
type: "js",
128-
code: "function findPath(a, b) {\n // Your code here...\n}\n\nvar graph = treeGraph(4, 4);\nvar root = graph[0], leaf = graph[graph.length - 1];\nconsole.log(findPath(root, leaf).length);\n// → 4\n\nleaf.connect(root);\nconsole.log(findPath(root, leaf).length);\n// → 2\n",
129-
solution: fs.readFileSync("code/solutions/22_1_pathfinding.js", "utf8")
130-
},
131-
{name: "Timing",
132-
file: "code/solutions/22_2_timing.js",
133-
number: 2,
134-
type: "js",
135-
code: "",
136-
solution: fs.readFileSync("code/solutions/22_2_timing.js", "utf8")
137-
},
138-
{name: "Optimizing",
139-
file: "code/solutions/22_3_optimizing.js",
140-
number: 3,
141-
type: "js",
142-
code: "",
143-
solution: fs.readFileSync("code/solutions/22_3_optimizing.js", "utf8")
144-
}
145-
]
146-
});
147-
148-
149118
if (allSolutions.length) {
150119
console.error("Solution files " + allSolutions + " were not used.");
151120
failed = true;

0 commit comments

Comments
 (0)