@@ -38,13 +38,6 @@ import (
38
38
"testing"
39
39
)
40
40
41
- type CollectCtagsFromPreprocSource struct {}
42
-
43
- func (* CollectCtagsFromPreprocSource ) Run (ctx * types.Context ) error {
44
- ctx .CTagsCollected = ctx .CTagsOfPreprocessedSource
45
- return nil
46
- }
47
-
48
41
func TestCTagsToPrototypesShouldListPrototypes (t * testing.T ) {
49
42
ctx := & types.Context {}
50
43
@@ -55,7 +48,6 @@ func TestCTagsToPrototypesShouldListPrototypes(t *testing.T) {
55
48
56
49
commands := []types.Command {
57
50
& ctags.CTagsParser {},
58
- & CollectCtagsFromPreprocSource {},
59
51
& ctags.CTagsToPrototypes {},
60
52
}
61
53
@@ -87,7 +79,6 @@ func TestCTagsToPrototypesShouldListTemplates(t *testing.T) {
87
79
88
80
commands := []types.Command {
89
81
& ctags.CTagsParser {},
90
- & CollectCtagsFromPreprocSource {},
91
82
& ctags.CTagsToPrototypes {},
92
83
}
93
84
@@ -117,7 +108,6 @@ func TestCTagsToPrototypesShouldListTemplates2(t *testing.T) {
117
108
118
109
commands := []types.Command {
119
110
& ctags.CTagsParser {},
120
- & CollectCtagsFromPreprocSource {},
121
111
& ctags.CTagsToPrototypes {},
122
112
}
123
113
@@ -148,7 +138,6 @@ func TestCTagsToPrototypesShouldDealWithClasses(t *testing.T) {
148
138
149
139
commands := []types.Command {
150
140
& ctags.CTagsParser {},
151
- & CollectCtagsFromPreprocSource {},
152
141
& ctags.CTagsToPrototypes {},
153
142
}
154
143
@@ -174,7 +163,6 @@ func TestCTagsToPrototypesShouldDealWithStructs(t *testing.T) {
174
163
175
164
commands := []types.Command {
176
165
& ctags.CTagsParser {},
177
- & CollectCtagsFromPreprocSource {},
178
166
& ctags.CTagsToPrototypes {},
179
167
}
180
168
@@ -204,7 +192,6 @@ func TestCTagsToPrototypesShouldDealWithMacros(t *testing.T) {
204
192
205
193
commands := []types.Command {
206
194
& ctags.CTagsParser {},
207
- & CollectCtagsFromPreprocSource {},
208
195
& ctags.CTagsToPrototypes {},
209
196
}
210
197
@@ -236,7 +223,6 @@ func TestCTagsToPrototypesShouldDealFunctionWithDifferentSignatures(t *testing.T
236
223
237
224
commands := []types.Command {
238
225
& ctags.CTagsParser {},
239
- & CollectCtagsFromPreprocSource {},
240
226
& ctags.CTagsToPrototypes {},
241
227
}
242
228
@@ -264,7 +250,6 @@ func TestCTagsToPrototypesClassMembersAreFilteredOut(t *testing.T) {
264
250
265
251
commands := []types.Command {
266
252
& ctags.CTagsParser {},
267
- & CollectCtagsFromPreprocSource {},
268
253
& ctags.CTagsToPrototypes {},
269
254
}
270
255
@@ -293,7 +278,6 @@ func TestCTagsToPrototypesStructWithFunctions(t *testing.T) {
293
278
294
279
commands := []types.Command {
295
280
& ctags.CTagsParser {},
296
- & CollectCtagsFromPreprocSource {},
297
281
& ctags.CTagsToPrototypes {},
298
282
}
299
283
@@ -322,7 +306,6 @@ func TestCTagsToPrototypesDefaultArguments(t *testing.T) {
322
306
323
307
commands := []types.Command {
324
308
& ctags.CTagsParser {},
325
- & CollectCtagsFromPreprocSource {},
326
309
& ctags.CTagsToPrototypes {},
327
310
}
328
311
@@ -352,7 +335,6 @@ func TestCTagsToPrototypesNamespace(t *testing.T) {
352
335
353
336
commands := []types.Command {
354
337
& ctags.CTagsParser {},
355
- & CollectCtagsFromPreprocSource {},
356
338
& ctags.CTagsToPrototypes {},
357
339
}
358
340
@@ -381,7 +363,6 @@ func TestCTagsToPrototypesStatic(t *testing.T) {
381
363
382
364
commands := []types.Command {
383
365
& ctags.CTagsParser {},
384
- & CollectCtagsFromPreprocSource {},
385
366
& ctags.CTagsToPrototypes {},
386
367
}
387
368
@@ -412,7 +393,6 @@ func TestCTagsToPrototypesFunctionPointer(t *testing.T) {
412
393
413
394
commands := []types.Command {
414
395
& ctags.CTagsParser {},
415
- & CollectCtagsFromPreprocSource {},
416
396
& ctags.CTagsToPrototypes {},
417
397
}
418
398
@@ -442,7 +422,6 @@ func TestCTagsToPrototypesFunctionPointers(t *testing.T) {
442
422
443
423
commands := []types.Command {
444
424
& ctags.CTagsParser {},
445
- & CollectCtagsFromPreprocSource {},
446
425
& ctags.CTagsToPrototypes {},
447
426
}
448
427
0 commit comments