about summary refs log tree commit diff stats
path: root/cpp
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-04-22 09:59:35 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-04-22 09:59:35 -0700
commita6a8cfdde7c83b29a2ed76e887887355119ec1a1 (patch)
tree1f7c1b7afe4a944eba8ac3f37d8f3a9bc0600188 /cpp
parentf7a2671901bc396ecd5578ba624c4532d6bbf4f3 (diff)
downloadmu-a6a8cfdde7c83b29a2ed76e887887355119ec1a1.tar.gz
1120
Diffstat (limited to 'cpp')
-rw-r--r--cpp/tangle/030tangle.cc14
1 files changed, 6 insertions, 8 deletions
diff --git a/cpp/tangle/030tangle.cc b/cpp/tangle/030tangle.cc
index b1316b88..7f3f23c5 100644
--- a/cpp/tangle/030tangle.cc
+++ b/cpp/tangle/030tangle.cc
@@ -95,14 +95,12 @@ void process_next_hunk(istream& in, const string& directive, const string& filen
       in.seekg(old);
       break;
     }
-    else {
-      Line curr;
-      curr.line_number = line_number;
-      curr.filename = filename;
-      curr.contents = curr_line;
-      hunk.push_back(curr);
-      ++line_number;
-    }
+    Line curr;
+    curr.line_number = line_number;
+    curr.filename = filename;
+    curr.contents = curr_line;
+    hunk.push_back(curr);
+    ++line_number;
   }
 
   istringstream directive_stream(directive.substr(2));  // length of ":("
artik K. Agaram <vc@akkartik.com> 2015-05-06 00:19:03 -0700 committer Kartik K. Agaram <vc@akkartik.com> 2015-05-06 00:19:03 -0700 1279 - colorized rendering of the source files' href='/akkartik/mu/commit/html/002test.cc.html?h=main&id=672e3e50c6ed6de161e40aa256c3fc0f2b1f7cf9'>672e3e50 ^
65361948 ^
672e3e50 ^




















c5ffb6e1 ^
4bbd3ded ^
672e3e50 ^



65361948 ^
672e3e50 ^


65361948 ^

672e3e50 ^



c5ffb6e1 ^
672e3e50 ^










c5ffb6e1 ^

672e3e50 ^

c5ffb6e1 ^
672e3e50 ^
c5ffb6e1 ^
672e3e50 ^
c5ffb6e1 ^
672e3e50 ^









1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135