Skip to content

Commit 4364be3

Browse files
committed
Dead code.
1 parent 9a88ba2 commit 4364be3

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

src/rt/rust_crate_cache.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -132,18 +132,6 @@ rust_crate_cache::rust_sym::get_val() {
132132

133133

134134

135-
rust_crate_cache::lib *
136-
rust_crate_cache::get_lib(size_t n, char const *name)
137-
{
138-
I(dom, n < crate->n_libs);
139-
lib *library = libs[n];
140-
if (!library) {
141-
library = new (dom) lib(dom, name);
142-
libs[n] = library;
143-
}
144-
return library;
145-
}
146-
147135
static inline void
148136
adjust_disp(uintptr_t &disp, const void *oldp, const void *newp)
149137
{

src/rt/rust_internal.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,6 @@ rust_crate_cache : public dom_owned<rust_crate_cache>,
322322
~rust_sym();
323323
};
324324

325-
lib *get_lib(size_t n, char const *name);
326325
type_desc *get_type_desc(size_t size,
327326
size_t align,
328327
size_t n_descs,

0 commit comments

Comments
 (0)