Skip to content

Commit 6448661

Browse files
committed
Remove some dead code
1 parent 2ae6654 commit 6448661

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

glean/rts/bytecode/subroutine.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -344,18 +344,6 @@ size_t Subroutine::size() const {
344344
constants.size() * sizeof(uint64_t);
345345
}
346346

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-
359347
void Subroutine::put(binary::Output& out, const Subroutine& sub) {
360348
serialize::put(out, sub.code, serialize::AsBytes{});
361349
serialize::put(out, sub.inputs);

0 commit comments

Comments
 (0)