mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:37:35 +00:00
LibJS: Remove shift, pop, push functions from Array object
This abstraction isn't really that useful, as we can access the underlying Vector<Value> using elements() and operate on it directly.
This commit is contained in:
parent
d74ad81402
commit
9fab52a390
6 changed files with 18 additions and 40 deletions
|
@ -37,10 +37,6 @@ public:
|
|||
|
||||
i32 length() const { return static_cast<i32>(elements().size()); }
|
||||
|
||||
Value shift();
|
||||
Value pop();
|
||||
void push(Value);
|
||||
|
||||
private:
|
||||
virtual const char* class_name() const override { return "Array"; }
|
||||
virtual bool is_array() const override { return true; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue