cxgeorge 23 лет назад
Родитель
Сommit
0fc0c3f811
2 измененных файлов с 3 добавлено и 34 удалено
  1. 0 31
      panda/src/putil/mouseData.cxx
  2. 3 3
      panda/src/putil/mouseData.h

+ 0 - 31
panda/src/putil/mouseData.cxx

@@ -18,7 +18,6 @@
 
 #include "mouseData.h"
 
-
 ////////////////////////////////////////////////////////////////////
 //     Function: MouseData::Constructor
 //       Access: Public
@@ -30,33 +29,3 @@ MouseData() {
   _xpos = 0;
   _ypos = 0;
 }
-
-////////////////////////////////////////////////////////////////////
-//     Function: MouseData::get_x
-//       Access: Public
-//  Description:
-////////////////////////////////////////////////////////////////////
-int MouseData::
-get_x() const {
-  return _xpos;
-}
-
-////////////////////////////////////////////////////////////////////
-//     Function: MouseData::get_y
-//       Access: Public
-//  Description:
-////////////////////////////////////////////////////////////////////
-int MouseData::
-get_y() const {
-  return _ypos;
-}
-
-////////////////////////////////////////////////////////////////////
-//     Function: MouseData::get_in_window
-//       Access: Public
-//  Description:
-////////////////////////////////////////////////////////////////////
-bool MouseData::
-get_in_window() const {
-  return _in_window;
-}

+ 3 - 3
panda/src/putil/mouseData.h

@@ -33,9 +33,9 @@ class EXPCL_PANDA MouseData {
 PUBLISHED:
   MouseData();
 
-  int get_x() const;
-  int get_y() const;
-  bool get_in_window() const;
+  INLINE int get_x() const {return _xpos;};
+  INLINE int get_y() const {return _ypos;};
+  INLINE bool get_in_window() const {return _in_window;};
 
 public:
   bool _in_window;