From ef8a5521e440baa2f86d468cdc9078f54ec7c0c0 Mon Sep 17 00:00:00 2001 From: Dongdong Li Date: Fri, 22 Nov 2013 15:38:36 -0800 Subject: Delete Intersim Code Review Issue: 113001 [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 17414] --- src/intersim/module.cpp | 63 ------------------------------------------------- 1 file changed, 63 deletions(-) delete mode 100644 src/intersim/module.cpp (limited to 'src/intersim/module.cpp') diff --git a/src/intersim/module.cpp b/src/intersim/module.cpp deleted file mode 100644 index e0a2289..0000000 --- a/src/intersim/module.cpp +++ /dev/null @@ -1,63 +0,0 @@ -#include "booksim.hpp" -#include -#include - -#include "module.hpp" - -Module::Module( ) -{ -} - -Module::Module( Module *parent, const string& name ) -{ - SetName( parent, name ); -} - -void Module::_AddChild( Module *child ) -{ - _children.push_back( child ); -} - -void Module::SetName( Module *parent, const string& name ) -{ - _name = name; - - if ( parent ) { - parent->_AddChild( this ); - _fullname = parent->_fullname + "/" + name; - } else { - _fullname = name; - } -} - -void Module::DisplayHierarchy( int level ) const -{ - vector::const_iterator mod_iter; - - for ( int l = 0; l < level; l++ ) { - cout << " "; - } - - cout << _name << endl; - - for ( mod_iter = _children.begin( ); - mod_iter != _children.end( ); mod_iter++ ) { - (*mod_iter)->DisplayHierarchy( level + 1 ); - } -} - -void Module::Error( const string& msg ) const -{ - cout << "Error in " << _fullname << " : " << msg << endl; - exit( -1 ); -} - -void Module::Debug( const string& msg ) const -{ - cout << "Debug (" << _fullname << ") : " << msg << endl; -} - -void Module::Display( ) const -{ - cout << "Display method not implemented for " << _fullname << endl; -} -- cgit v1.3