diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2007-08-02 23:30:25 -0700 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2007-08-02 23:30:25 -0700 |
commit | 121a894ce0d551e860392f9aa6bd381329a25b96 (patch) | |
tree | 3e8b7ded2869c14eb45403a15100d45d247f401b /src/python/swig/pyobject.hh | |
parent | f4b89cd897e15b34f1565f55d7c6ce0c056f361a (diff) | |
parent | 0536d0cde931e89d33b10228950d455dd54d8a5f (diff) | |
download | gem5-121a894ce0d551e860392f9aa6bd381329a25b96.tar.xz |
Merge with head.
--HG--
extra : convert_revision : c8b066289916b3fb24bcae1e9c76e27ad4cf61b1
Diffstat (limited to 'src/python/swig/pyobject.hh')
-rw-r--r-- | src/python/swig/pyobject.hh | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/python/swig/pyobject.hh b/src/python/swig/pyobject.hh index da609e07e..8e3a96994 100644 --- a/src/python/swig/pyobject.hh +++ b/src/python/swig/pyobject.hh @@ -47,26 +47,6 @@ void loadIniFile(PyObject *_resolveFunc); int connectPorts(SimObject *o1, const std::string &name1, int i1, SimObject *o2, const std::string &name2, int i2); -inline BaseCPU * -convertToBaseCPUPtr(SimObject *obj) -{ - BaseCPU *ptr = dynamic_cast<BaseCPU *>(obj); - - if (ptr == NULL) - warn("Casting to BaseCPU pointer failed"); - return ptr; -} - -inline System * -convertToSystemPtr(SimObject *obj) -{ - System *ptr = dynamic_cast<System *>(obj); - - if (ptr == NULL) - warn("Casting to System pointer failed"); - return ptr; -} - inline void initAll() { |