Skip to content

Commit b285d9f

Browse files
june128leios
authored andcommitted
Remove credit for ubsan from the top of some C++ files, since she wanted that. Remove credit on the top of these files in general then. (#375)
1 parent 38c58ac commit b285d9f

File tree

4 files changed

+8
-13
lines changed

4 files changed

+8
-13
lines changed

contents/euclidean_algorithm/code/c++/euclidean.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// originally contributed by James Schloss (Leios)
2-
// restyled by Nicole Mazzuca (ubsan)
31
#include <cmath>
42
#include <iostream>
53
#include <utility>

contents/euclidean_algorithm/euclidean_algorithm.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The algorithm is a simple way to find the *greatest common divisor* (GCD) of two
1212
{% sample lang="clj" %}
1313
[import:2-8, lang="clojure"](code/clojure/euclidean_example.clj)
1414
{% sample lang="cpp" %}
15-
[import:20-33, lang="c_cpp"](code/c++/euclidean.cpp)
15+
[import:18-31, lang="c_cpp"](code/c++/euclidean.cpp)
1616
{% sample lang="java" %}
1717
[import:3-16, lang="java"](code/java/EuclideanAlgo.java)
1818
{% sample lang="js" %}
@@ -57,7 +57,7 @@ Modern implementations, though, often use the modulus operator (%) like so
5757
{% sample lang="clj" %}
5858
[import:9-13, lang="clojure"](code/clojure/euclidean_example.clj)
5959
{% sample lang="cpp" %}
60-
[import:7-17, lang="c_cpp"](code/c++/euclidean.cpp)
60+
[import:5-15, lang="c_cpp"](code/c++/euclidean.cpp)
6161
{% sample lang="java" %}
6262
[import:18-26, lang="java"](code/java/EuclideanAlgo.java)
6363
{% sample lang="js" %}

contents/tree_traversal/code/c++/tree_example.cpp

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// initially contributed by James Schloss (Leios)
2-
// restyled by Nicole Mazzuca (ubsan)
3-
41
#include <algorithm>
52
#include <cstddef>
63
#include <iostream>

contents/tree_traversal/tree_traversal.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Trees are naturally recursive data structures, and because of this, we cannot ac
66
{% sample lang="jl" %}
77
[import:3-7, lang:"julia"](code/julia/Tree.jl)
88
{% sample lang="cpp" %}
9-
[import:15-18, lang:"c_cpp"](code/c++/tree_example.cpp)
9+
[import:12-15, lang:"c_cpp"](code/c++/tree_example.cpp)
1010
{% sample lang="cs" %}
1111
[import:7-11, lang:"csharp"](code/csharp/Tree.cs)
1212
{% sample lang="c" %}
@@ -40,7 +40,7 @@ Because of this, the most straightforward way to traverse the tree might be recu
4040
{% sample lang="jl" %}
4141
[import:9-16, lang:"julia"](code/julia/Tree.jl)
4242
{% sample lang="cpp" %}
43-
[import:20-27, lang:"c_cpp"](code/c++/tree_example.cpp)
43+
[import:17-24, lang:"c_cpp"](code/c++/tree_example.cpp)
4444
{% sample lang="cs" %}
4545
[import:34-45, lang:"csharp"](code/csharp/Tree.cs)
4646
{% sample lang="c" %}
@@ -83,7 +83,7 @@ Now, in this case the first element searched through is still the root of the tr
8383
{% sample lang="jl" %}
8484
[import:18-26, lang:"julia"](code/julia/Tree.jl)
8585
{% sample lang="cpp" %}
86-
[import:29-34 lang:"c_cpp"](code/c++/tree_example.cpp)
86+
[import:26-31, lang:"c_cpp"](code/c++/tree_example.cpp)
8787
{% sample lang="cs" %}
8888
[import:47-58, lang:"csharp"](code/csharp/Tree.cs)
8989
{% sample lang="c" %}
@@ -120,7 +120,7 @@ In this case, the first node visited is at the bottom of the tree and moves up t
120120
{% sample lang="jl" %}
121121
[import:28-43, lang:"julia"](code/julia/Tree.jl)
122122
{% sample lang="cpp" %}
123-
[import:37-55 lang:"c_cpp"](code/c++/tree_example.cpp)
123+
[import:34-52 lang:"c_cpp"](code/c++/tree_example.cpp)
124124
{% sample lang="cs" %}
125125
[import:60-79, lang:"csharp"](code/csharp/Tree.cs)
126126
{% sample lang="c" %}
@@ -167,7 +167,7 @@ In code, it looks like this:
167167
{% sample lang="jl" %}
168168
[import:45-56, lang:"julia"](code/julia/Tree.jl)
169169
{% sample lang="cpp" %}
170-
[import:58-73, lang:"c_cpp"](code/c++/tree_example.cpp)
170+
[import:55-70, lang:"c_cpp"](code/c++/tree_example.cpp)
171171
{% sample lang="cs" %}
172172
[import:81-94, lang:"csharp"](code/csharp/Tree.cs)
173173
{% sample lang="c" %}
@@ -207,7 +207,7 @@ And this is exactly what Breadth-First Search (BFS) does! On top of that, it can
207207
{% sample lang="jl" %}
208208
[import:58-69, lang:"julia"](code/julia/Tree.jl)
209209
{% sample lang="cpp" %}
210-
[import:76-89, lang:"c_cpp"](code/c++/tree_example.cpp)
210+
[import:73-86, lang:"c_cpp"](code/c++/tree_example.cpp)
211211
{% sample lang="cs" %}
212212
[import:96-109, lang:"csharp"](code/csharp/Tree.cs)
213213
{% sample lang="c" %}

0 commit comments

Comments
 (0)