summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/netlist/devices/nlid_system.h
diff options
context:
space:
mode:
author couriersud <couriersud@arcor.de>2017-01-02 17:33:06 +0100
committer couriersud <couriersud@arcor.de>2017-01-02 17:33:21 +0100
commitdb7cdcb957e503203f56adba77f9245cbfaa4601 (patch)
treed15f85782584f5c2eac301b204bbcb9f5e0427a4 /src/lib/netlist/devices/nlid_system.h
parent9a7b32f29d916e0f70ae934008315b66885f7c4c (diff)
Refactored factory. Use namespace "factory" instead of prefix factory_
all over the place. (nw)
Diffstat (limited to 'src/lib/netlist/devices/nlid_system.h')
-rw-r--r--src/lib/netlist/devices/nlid_system.h41
1 files changed, 0 insertions, 41 deletions
diff --git a/src/lib/netlist/devices/nlid_system.h b/src/lib/netlist/devices/nlid_system.h
index 13812b50ec7..89251264fa7 100644
--- a/src/lib/netlist/devices/nlid_system.h
+++ b/src/lib/netlist/devices/nlid_system.h
@@ -413,47 +413,6 @@ namespace netlist
state_var<netlist_sig_t> m_last_state;
};
- // -----------------------------------------------------------------------------
- // factory class to wrap macro based chips/elements
- // -----------------------------------------------------------------------------
-
- class factory_lib_entry_t : public base_factory_t
- {
- P_PREVENT_COPYING(factory_lib_entry_t)
- public:
-
- factory_lib_entry_t(setup_t &setup, const pstring &name, const pstring &classname,
- const pstring &def_param)
- : base_factory_t(name, classname, def_param), m_setup(setup) { }
-
- class wrapper : public device_t
- {
- public:
- wrapper(netlist_t &anetlist, const pstring &name)
- : device_t(anetlist, name)
- {
- }
- protected:
- NETLIB_RESETI() { }
- NETLIB_UPDATEI() { }
- };
-
- plib::owned_ptr<device_t> Create(netlist_t &anetlist, const pstring &name) override
- {
- return plib::owned_ptr<device_t>::Create<wrapper>(anetlist, name);
- }
-
- void macro_actions(netlist_t &anetlist, const pstring &name) override
- {
- anetlist.setup().namespace_push(name);
- anetlist.setup().include(this->name());
- anetlist.setup().namespace_pop();
- }
-
- private:
- setup_t &m_setup;
- };
-
} //namespace devices
} // namespace netlist