Remove unused codes found by cppcheck

* remove unused functions
* remove unused variables
* mark necessary but unused variables with UNUSED_VARIABLE

Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
This commit is contained in:
HyukWoo Park 2020-10-05 17:39:16 +09:00 committed by Boram Bae
commit f168e4bd7b
30 changed files with 35 additions and 111 deletions

View file

@ -579,7 +579,6 @@ Object::OwnPropertyKeyVector ProxyObject::ownPropertyKeys(ExecutionState& state)
}
// 21. Repeat, for each key that is an element of targetNonconfigurableKeys,
size_t removedUncheckedResultKeys = 0;
for (size_t i = 0; i < targetNonconfigurableKeys.size(); ++i) {
auto& key = targetNonconfigurableKeys[i];
// a. If key is not an element of uncheckedResultKeys, throw a TypeError exception.