Explorar o código

remove unused parameter

David Rose %!s(int64=21) %!d(string=hai) anos
pai
achega
2d3f3a6519

+ 1 - 1
panda/src/gobj/materialPool.cxx

@@ -30,7 +30,7 @@ MaterialPool *MaterialPool::_global_ptr = (MaterialPool *)NULL;
 //               indicated output stream.
 //               indicated output stream.
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 void MaterialPool::
 void MaterialPool::
-write(ostream &out, unsigned int) {
+write(ostream &out) {
   get_ptr()->ns_list_contents(out);
   get_ptr()->ns_list_contents(out);
 }
 }
 
 

+ 1 - 1
panda/src/gobj/materialPool.h

@@ -51,7 +51,7 @@ PUBLISHED:
   INLINE static const Material *get_material(const CPT(Material) &temp);
   INLINE static const Material *get_material(const CPT(Material) &temp);
   INLINE static int garbage_collect();
   INLINE static int garbage_collect();
   INLINE static void list_contents(ostream &out);
   INLINE static void list_contents(ostream &out);
-  static void write(ostream &out, unsigned int indent=0);
+  static void write(ostream &out);
 
 
 private:
 private:
   INLINE MaterialPool();
   INLINE MaterialPool();

+ 12 - 12
panda/src/gobj/texturePool.cxx

@@ -26,6 +26,18 @@
 TexturePool *TexturePool::_global_ptr = (TexturePool *)NULL;
 TexturePool *TexturePool::_global_ptr = (TexturePool *)NULL;
 
 
 
 
+////////////////////////////////////////////////////////////////////
+//     Function: TexturePool::write
+//       Access: Published, Static
+//  Description: Lists the contents of the texture pool to the
+//               indicated output stream.
+//               For debugging.
+////////////////////////////////////////////////////////////////////
+void TexturePool::
+write(ostream &out) {
+  get_ptr()->ns_list_contents(out);
+}
+
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 //     Function: TexturePool::ns_has_texture
 //     Function: TexturePool::ns_has_texture
 //       Access: Private
 //       Access: Private
@@ -265,15 +277,3 @@ get_ptr() {
   }
   }
   return _global_ptr;
   return _global_ptr;
 }
 }
-
-////////////////////////////////////////////////////////////////////
-//     Function: TexturePool::write
-//       Access: Published, Static
-//  Description: Lists the contents of the texture pool to the
-//               indicated output stream.
-//               For debugging.
-////////////////////////////////////////////////////////////////////
-void TexturePool::
-write(ostream &out, unsigned int) {
-  get_ptr()->ns_list_contents(out);
-}

+ 1 - 1
panda/src/gobj/texturePool.h

@@ -61,7 +61,7 @@ PUBLISHED:
   INLINE static const string &get_fake_texture_image();
   INLINE static const string &get_fake_texture_image();
   
   
   // static void output(ostream &out);
   // static void output(ostream &out);
-  static void write(ostream &out, unsigned int indent=0);
+  static void write(ostream &out);
 
 
 private:
 private:
   INLINE TexturePool();
   INLINE TexturePool();

+ 12 - 12
panda/src/pgraph/modelPool.cxx

@@ -25,6 +25,18 @@ ModelPool *ModelPool::_global_ptr = (ModelPool *)NULL;
 
 
 static Loader model_loader;
 static Loader model_loader;
 
 
+////////////////////////////////////////////////////////////////////
+//     Function: ModelPool::write
+//       Access: Published, Static
+//  Description: Lists the contents of the model pool to the
+//               indicated output stream.
+//               Helps with debugging.
+////////////////////////////////////////////////////////////////////
+void ModelPool::
+write(ostream &out) {
+  get_ptr()->ns_list_contents(out);
+}
+
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 //     Function: ModelPool::ns_has_model
 //     Function: ModelPool::ns_has_model
 //       Access: Private
 //       Access: Private
@@ -159,15 +171,3 @@ get_ptr() {
   }
   }
   return _global_ptr;
   return _global_ptr;
 }
 }
-
-////////////////////////////////////////////////////////////////////
-//     Function: ModelPool::write
-//       Access: Public, Static
-//  Description: Lists the contents of the model pool to the
-//               indicated output stream.
-//               Helps with debugging.
-////////////////////////////////////////////////////////////////////
-void ModelPool::
-write(ostream &out, unsigned int) {
-  get_ptr()->ns_list_contents(out);
-}

+ 1 - 1
panda/src/pgraph/modelPool.h

@@ -59,7 +59,7 @@ PUBLISHED:
   INLINE static int garbage_collect();
   INLINE static int garbage_collect();
 
 
   INLINE static void list_contents(ostream &out);
   INLINE static void list_contents(ostream &out);
-  static void write(ostream &out, unsigned int indent=0);
+  static void write(ostream &out);
 
 
 private:
 private:
   INLINE ModelPool();
   INLINE ModelPool();

+ 11 - 11
panda/src/text/fontPool.cxx

@@ -29,6 +29,17 @@ FontPool *FontPool::_global_ptr = (FontPool *)NULL;
 
 
 static Loader model_loader;
 static Loader model_loader;
 
 
+////////////////////////////////////////////////////////////////////
+//     Function: FontPool::write
+//       Access: Published, Static
+//  Description: Lists the contents of the font pool to the
+//               indicated output stream.
+////////////////////////////////////////////////////////////////////
+void FontPool::
+write(ostream &out) {
+  get_ptr()->ns_list_contents(out);
+}
+
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 //     Function: FontPool::ns_has_font
 //     Function: FontPool::ns_has_font
 //       Access: Private
 //       Access: Private
@@ -243,14 +254,3 @@ get_ptr() {
   }
   }
   return _global_ptr;
   return _global_ptr;
 }
 }
-
-////////////////////////////////////////////////////////////////////
-//     Function: FontPool::write
-//       Access: Public, Static
-//  Description: Lists the contents of the font pool to the
-//               indicated output stream.
-////////////////////////////////////////////////////////////////////
-void FontPool::
-write(ostream &out, unsigned int) {
-  get_ptr()->ns_list_contents(out);
-}

+ 1 - 1
panda/src/text/fontPool.h

@@ -49,7 +49,7 @@ PUBLISHED:
   INLINE static int garbage_collect();
   INLINE static int garbage_collect();
 
 
   INLINE static void list_contents(ostream &out);
   INLINE static void list_contents(ostream &out);
-  static void write(ostream &out, unsigned int indent=0);
+  static void write(ostream &out);
 
 
 private:
 private:
   INLINE FontPool();
   INLINE FontPool();