LibJS: Remove js_string(Interpreter&, ...)

This commit is contained in:
Andreas Kling 2020-09-27 20:03:42 +02:00
commit 591b7b7031
Notes: sideshowbarker 2024-07-19 02:10:11 +09:00
8 changed files with 9 additions and 16 deletions

View file

@ -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));