Bug 1170182 - Remove dead functions from js/src. r=jorendorff

This commit is contained in:
Jan de Mooij
2015-06-27 08:56:58 -07:00
parent 5a1dfb73e7
commit 22735e1619
28 changed files with 0 additions and 400 deletions

View File

@@ -1296,30 +1296,6 @@ js::SuppressDeletedElement(JSContext* cx, HandleObject obj, uint32_t index)
return SuppressDeletedProperty(cx, obj, id);
}
namespace {
class IndexRangePredicate {
uint32_t begin, end;
public:
IndexRangePredicate(uint32_t begin, uint32_t end) : begin(begin), end(end) {}
bool operator()(JSFlatString* str) {
uint32_t index;
return str->isIndex(&index) && begin <= index && index < end;
}
bool matchesAtMostOne() { return false; }
};
} /* anonymous namespace */
bool
js::SuppressDeletedElements(JSContext* cx, HandleObject obj, uint32_t begin, uint32_t end)
{
return SuppressDeletedPropertyHelper(cx, obj, IndexRangePredicate(begin, end));
}
bool
js::IteratorMore(JSContext* cx, HandleObject iterobj, MutableHandleValue rval)
{