Skip to content

Commit 921df96

Browse files
author
Frankie Robertson
committed
Remove PushVectors
1 parent 5165509 commit 921df96

File tree

3 files changed

+8
-110
lines changed

3 files changed

+8
-110
lines changed

src/ComputerAdaptiveTesting.jl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ export Stateful, Comparison
1313
# Extension modules
1414
public require_testext
1515

16-
# Vendored dependencies
17-
include("./vendor/PushVectors.jl")
18-
1916
# Config base
2017
include("./ConfigBase.jl")
2118

src/DecisionTree/DecisionTree.jl

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ module DecisionTree
33
using Mmap: mmap
44

55
using ComputerAdaptiveTesting.ConfigBase: CatConfigBase
6-
using ComputerAdaptiveTesting.PushVectors
76
using ComputerAdaptiveTesting.NextItemRules
87
using ComputerAdaptiveTesting.Aggregators
98
using ComputerAdaptiveTesting.Responses: BareResponses, Response, add_response!, pop_response!
@@ -18,15 +17,19 @@ end
1817
Base.@kwdef mutable struct TreePosition
1918
max_depth::UInt
2019
cur_depth::UInt
21-
todo::PushVector{AgendaItem, Vector{AgendaItem}}
20+
todo::Vector{AgendaItem}
2221
parent_ability::Float64
2322
end
2423

2524
function TreePosition(max_depth)
26-
TreePosition(max_depth = max_depth,
25+
todo = Vector{AgendaItem}()
26+
sizehint!(todo, max_depth)
27+
TreePosition(;
28+
max_depth,
2729
cur_depth = 0,
28-
todo = PushVector{AgendaItem}(max_depth),
29-
parent_ability = 0.0)
30+
todo,
31+
parent_ability = 0.0
32+
)
3033
end
3134

3235
function next!(state::TreePosition, responses, item_bank, question, ability)

src/vendor/PushVectors.jl

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

0 commit comments

Comments
 (0)