Remove unused variable

This commit is contained in:
pyoor 2018-09-04 14:25:51 -04:00
parent 7149e2af12
commit 1d87f06b12

View file

@ -5,7 +5,6 @@
const random = require('../random') const random = require('../random')
const make = require('../make') const make = require('../make')
const utils = require('../utils') const utils = require('../utils')
const {o} = require('./objects')
class script extends utils { class script extends utils {
static addElementToBody (name) { static addElementToBody (name) {
@ -34,12 +33,12 @@ class script extends utils {
} }
static makeConstraint (keys, values) { static makeConstraint (keys, values) {
let o = {} const dict = {}
let n = random.range(0, keys.length) let n = random.range(0, keys.length)
while (n--) { while (n--) {
o[random.pick(keys)] = random.pick(values) dict[random.pick(keys)] = random.pick(values)
} }
return o return dict
} }
static makeLoop (s, max) { static makeLoop (s, max) {
@ -47,12 +46,12 @@ class script extends utils {
} }
static makeRandomOptions (baseObject) { static makeRandomOptions (baseObject) {
let o = {} const dict = {}
let unique = random.subset(Object.keys(baseObject)) let unique = random.subset(Object.keys(baseObject))
for (let i = 0; i < unique.length; i++) { for (let i = 0; i < unique.length; i++) {
o[unique[i]] = random.pick(baseObject[unique[i]]) dict[unique[i]] = random.pick(baseObject[unique[i]])
} }
return JSON.stringify(o) return JSON.stringify(dict)
} }
static methodCall (objectName, methodHash) { static methodCall (objectName, methodHash) {