chore(library/module): remove dead declaration
This commit is contained in:
parent
22d2848d21
commit
e616def866
2 changed files with 2 additions and 11 deletions
|
|
@ -287,6 +287,8 @@ static olean_data parse_olean(std::istream & in, std::string const & file_name,
|
|||
return { imports, code };
|
||||
}
|
||||
|
||||
using modification_list = std::vector<modification*>;
|
||||
|
||||
static void import_module(modification_list const & modifications, environment & env) {
|
||||
for (auto & m : modifications) {
|
||||
m->perform(env);
|
||||
|
|
|
|||
|
|
@ -29,17 +29,6 @@ environment import_modules(unsigned trust_lvl, std::vector<module_name> const &
|
|||
/** \brief Store module using \c env. */
|
||||
void write_module(environment const & env, module_name const & mod, std::string const & olean_fn);
|
||||
|
||||
struct modification;
|
||||
|
||||
using modification_list = std::vector<modification*>;
|
||||
|
||||
/** \brief A finished module. The in-memory representation of a .olean file. */
|
||||
struct loaded_module {
|
||||
module_name m_name; // not serialized
|
||||
std::vector<module_name> m_imports;
|
||||
modification_list m_modifications;
|
||||
};
|
||||
|
||||
struct modification {
|
||||
public:
|
||||
virtual ~modification() {}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue