Skip to content

Commit cb5ef1f

Browse files
committed
asim: remove some unused fields
1 parent ac0d578 commit cb5ef1f

File tree

2 files changed

+14
-29
lines changed

2 files changed

+14
-29
lines changed

pkg/kv/kvserver/asim/tests/default_settings.go

Lines changed: 14 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,6 @@ const (
3434
defaultBytes = int64(0)
3535
)
3636

37-
const (
38-
defaultStat = "replicas"
39-
defaultHeight, defaultWidth = 15, 80
40-
)
41-
4237
const (
4338
defaultRequestCPUPerAccess, defaultRaftCPUPerWrite = int64(0), int64(0)
4439
)
@@ -58,33 +53,26 @@ type staticOptionSettings struct {
5853
placementType gen.PlacementType
5954
replicationFactor int
6055
bytes int64
61-
stat string
62-
height int
63-
width int
6456
requestCPUPerAccess int64
6557
raftCPUPerWrite int64
6658
}
6759

6860
func getDefaultStaticOptionSettings() staticOptionSettings {
6961
return staticOptionSettings{
70-
nodes: defaultNodes,
71-
storesPerNode: defaultStoresPerNode,
72-
storeByteCapacity: defaultStoreByteCapacity,
73-
rwRatio: defaultRwRatio,
74-
rate: defaultRate,
75-
minBlock: defaultMinBlock,
76-
maxBlock: defaultMaxBlock,
77-
minKey: defaultMinKey,
78-
maxKey: defaultMaxKey,
79-
skewedAccess: defaultSkewedAccess,
80-
ranges: defaultRanges,
81-
placementType: defaultPlacementType,
82-
replicationFactor: defaultReplicationFactor,
83-
bytes: defaultBytes,
84-
// TODO(tbg): unused, remove.
85-
stat: defaultStat,
86-
height: defaultHeight,
87-
width: defaultWidth,
62+
nodes: defaultNodes,
63+
storesPerNode: defaultStoresPerNode,
64+
storeByteCapacity: defaultStoreByteCapacity,
65+
rwRatio: defaultRwRatio,
66+
rate: defaultRate,
67+
minBlock: defaultMinBlock,
68+
maxBlock: defaultMaxBlock,
69+
minKey: defaultMinKey,
70+
maxKey: defaultMaxKey,
71+
skewedAccess: defaultSkewedAccess,
72+
ranges: defaultRanges,
73+
placementType: defaultPlacementType,
74+
replicationFactor: defaultReplicationFactor,
75+
bytes: defaultBytes,
8876
requestCPUPerAccess: defaultRequestCPUPerAccess,
8977
raftCPUPerWrite: defaultRaftCPUPerWrite,
9078
}

pkg/kv/kvserver/asim/tests/rand_test.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,6 @@ func TestRandomized(t *testing.T) {
202202
scanIfExists(t, d, "placement_type", &staticOptionSettings.placementType)
203203
scanIfExists(t, d, "replication_factor", &staticOptionSettings.replicationFactor)
204204
scanIfExists(t, d, "bytes", &staticOptionSettings.bytes)
205-
scanIfExists(t, d, "stat", &staticOptionSettings.stat)
206-
scanIfExists(t, d, "height", &staticOptionSettings.height)
207-
scanIfExists(t, d, "width", &staticOptionSettings.width)
208205
return ""
209206
case "rand_ranges":
210207
randOptions.ranges = true

0 commit comments

Comments
 (0)