1 parent 2ae6654 commit 6448661Copy full SHA for 6448661
1 file changed
glean/rts/bytecode/subroutine.cpp
@@ -344,18 +344,6 @@ size_t Subroutine::size() const {
344
constants.size() * sizeof(uint64_t);
345
}
346
347
-namespace {
348
-template <typename T, typename U>
349
-std::vector<T> copy_as(const std::vector<U>& xs) {
350
- std::vector<T> ys;
351
- ys.reserve(xs.size());
352
- for (const auto& x : xs) {
353
- ys.push_back(static_cast<T>(x));
354
- }
355
- return ys;
356
-}
357
-} // namespace
358
-
359
void Subroutine::put(binary::Output& out, const Subroutine& sub) {
360
serialize::put(out, sub.code, serialize::AsBytes{});
361
serialize::put(out, sub.inputs);
0 commit comments