Skip to content

Commit

Permalink
Merge pull request anfelbar#12 from ggutierrez/fix/unused-vm-warning
Browse files Browse the repository at this point in the history
Removed unused _vm attribute
  • Loading branch information
sjrd committed Mar 7, 2013
2 parents 5538e44 + 077b10f commit 7216ee4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion vm/main/vm-decl.hh
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ protected:
inline
void initModule(VM vm, T&& module);
private:
VM _vm;
atom_t _name;
ProtectedNode _module;
};
Expand Down
5 changes: 2 additions & 3 deletions vm/main/vm.hh
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@ namespace mozart {
// BuiltinModule //
///////////////////

BuiltinModule::BuiltinModule(VM vm, const nchar* name): _vm(vm) {
_name = vm->getAtom(name);
}
BuiltinModule::BuiltinModule(VM vm, const nchar* name)
: _name(vm->getAtom(name)) {}

template <typename T>
void BuiltinModule::initModule(VM vm, T&& module) {
Expand Down

0 comments on commit 7216ee4

Please sign in to comment.