Remove unneeded function

This commit is contained in:
King_DuckZ 2020-04-30 22:29:13 +02:00
parent b1c1ae40f5
commit 7252a6e1ec

View file

@ -4,14 +4,13 @@
#include <utility>
namespace wren {
namespace detail {
} //namespace detail
void set (VM& vm, int slot_num, const char* beg, const char* end) {
vm.set_slot_bytes(slot_num, beg, std::distance(beg, end));
}
void set (VM& vm, int slot_num, const Handle& handle) {
vm.set_slot_handle(handle, slot_num);
}
std::string_view slot_string_view (VM& vm, int slot_num) {
assert(SlotType::String == vm.slot_type(slot_num));
auto ptr = vm.slot_bytes(slot_num);