mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:18:11 +00:00
LibJS: Remove js_string(Interpreter&, ...)
This commit is contained in:
parent
adf0a537af
commit
591b7b7031
8 changed files with 9 additions and 16 deletions
|
@ -24,9 +24,8 @@
|
|||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <LibJS/Heap/Heap.h>
|
||||
#include <LibJS/Interpreter.h>
|
||||
#include <LibJS/Runtime/PrimitiveString.h>
|
||||
#include <LibJS/Runtime/VM.h>
|
||||
|
||||
namespace JS {
|
||||
|
||||
|
@ -46,11 +45,6 @@ PrimitiveString* js_string(Heap& heap, String string)
|
|||
return heap.allocate_without_global_object<PrimitiveString>(move(string));
|
||||
}
|
||||
|
||||
PrimitiveString* js_string(Interpreter& interpreter, String string)
|
||||
{
|
||||
return js_string(interpreter.heap(), move(string));
|
||||
}
|
||||
|
||||
PrimitiveString* js_string(VM& vm, String string)
|
||||
{
|
||||
return js_string(vm.heap(), move(string));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue