Browse Source

Deleting dead code

Josh Yelon 17 years ago
parent
commit
c9c32af2ab

+ 0 - 1
pandatool/src/maxegg/maxLogger.cxx

@@ -1 +0,0 @@
-char Logger::dummy[65536];

+ 0 - 56
pandatool/src/maxegg/maxLogger.h

@@ -1,56 +0,0 @@
-#ifndef __maxLogger__H
-#define __maxLogger__H
-
-class Logger
-{
-public:
-        enum SystemAspectType
-        {
-                SAT_NONE = 0x0000,
-                SAT_NULL_ERROR = 0x0001, 
-                SAT_CRITICAL_ERROR = 0x0002, 
-                SAT_PARAMETER_INVALID_ERROR = 0x0004, 
-                SAT_OTHER_ERROR = 0x0008,
-                SAT_HIGH_LEVEL = 0x0010, 
-                SAT_MEDIUM_LEVEL = 0x0020, 
-                SAT_LOW_LEVEL = 0x0040, 
-                SAT_DEBUG_SPAM_LEVEL = 0x0080,
-                SAT_ALL = 0x00FF
-        };
-
-        enum SystemType
-        {
-                ST_MAP_ME_TO_APP_SPECIFIC_SYSTEM1 = 0x0000, 
-                ST_MAP_ME_TO_APP_SPECIFIC_SYSTEM2 = 0x0001, 
-                ST_MAP_ME_TO_APP_SPECIFIC_SYSTEM3 = 0x0002, 
-                ST_MAP_ME_TO_APP_SPECIFIC_SYSTEM4 = 0x0003,
-                ST_MAP_ME_TO_APP_SPECIFIC_SYSTEM5 = 0x0004, 
-                ST_MAP_ME_TO_APP_SPECIFIC_SYSTEM6 = 0x0005, 
-                ST_MAP_ME_TO_APP_SPECIFIC_SYSTEM7 = 0x0006, 
-                ST_MAP_ME_TO_APP_SPECIFIC_SYSTEM8 = 0x0007
-        };
-
-        enum LoggingPipeType
-        {
-                PIPE_TO_FILE, PIPE_TO_COUT, PIPE_TO_CERR, PIPE_TO_DIALOG_BOX, PIPE_TO_DEV_NULL
-        };
-
-public:
-        Logger() {} 
-        Logger( LoggingPipeType toWhere, char *additionalStringInfo ) { }
-        ~Logger() { }
-        static void             FunctionEntry( char *newFunctionName ) { }
-        static void             FunctionExit() { }
-        static int              GetHierarchyLevel() { }
-        static char *   GetLogString() { return dummy; }
-        static void             Log( SystemType whichSystem, SystemAspectType whichErrorKind, char *errorDescription ) { }
-        static void             SetCurrentFunctionName( char *newFunctionName ) { }
-        static void             SetHierarchyLevel( unsigned int newIndentLevel ) { }
-        static void             SetOneErrorMask( SystemType whichType, long int whichErrors ) { }
-        static void             SetPipe( LoggingPipeType toWhere, char *additionalStringInfo ) { }
-
-        static char dummy[65536];
-
-};
-
-#endif

+ 0 - 1
pandatool/src/maxegg/maxNodeDesc.cxx

@@ -73,7 +73,6 @@ from_INode(INode *max_node) {
         ((c->ClassID() == BIPSLAVE_CONTROL_CLASS_ID) ||
         ((c->ClassID() == BIPSLAVE_CONTROL_CLASS_ID) ||
          (c->ClassID() == BIPBODY_CONTROL_CLASS_ID) ||
          (c->ClassID() == BIPBODY_CONTROL_CLASS_ID) ||
          (c->ClassID() == FOOTPRINT_CLASS_ID)))) {
          (c->ClassID() == FOOTPRINT_CLASS_ID)))) {
-      Logger::Log( MTEC, Logger::SAT_MEDIUM_LEVEL, "Found a joint." );
       
       
       // This node is a joint.
       // This node is a joint.
       _joint_type = JT_node_joint;
       _joint_type = JT_node_joint;

+ 0 - 3
pandatool/src/maxegg/maxNodeTree.cxx

@@ -109,9 +109,6 @@ build_complete_hierarchy(INode *root, ULONG *selection_list, int len) {
     _root->check_pseudo_joints(false);
     _root->check_pseudo_joints(false);
   }
   }
 
 
-  Logger::Log( MTEC, Logger::SAT_MEDIUM_LEVEL, 
-               "finished building complete hierarchy" );
-  
   return all_ok;
   return all_ok;
 }
 }
 
 

File diff suppressed because it is too large
+ 484 - 669
pandatool/src/maxegg/maxToEggConverter.cxx


+ 10 - 10
pandatool/src/maxegg/maxToEggConverter.h

@@ -89,18 +89,18 @@ class MaxToEggConverter {
  public:
  public:
     EggTextureCollection _textures;
     EggTextureCollection _textures;
     
     
-  enum TransformType {
-      TT_invalid,
-      TT_all,
-      TT_model,
-      TT_dcs,
-      TT_none,
-  };
-  TransformType _transform_type;
+    enum TransformType {
+        TT_invalid,
+        TT_all,
+        TT_model,
+        TT_dcs,
+        TT_none,
+    };
+    TransformType _transform_type;
   
   
-  static TransformType string_transform_type(const string &arg);
+    static TransformType string_transform_type(const string &arg);
   
   
-  Modifier* FindSkinModifier (INode* node, const Class_ID &type);
+    Modifier* FindSkinModifier (INode* node, const Class_ID &type);
 };
 };
 
 
 
 

+ 0 - 0
pandatool/src/maxegg/max_post_include.h


+ 0 - 0
pandatool/src/maxegg/max_pre_include.h


+ 0 - 2
pandatool/src/maxegg/maxegg_composite1.cxx

@@ -47,14 +47,12 @@
 
 
 #include "maxNodeDesc.h"
 #include "maxNodeDesc.h"
 #include "maxNodeTree.h"
 #include "maxNodeTree.h"
-#include "maxLogger.h"
 #include "maxToEgg.h"
 #include "maxToEgg.h"
 #include "maxEggExpOptions.h"
 #include "maxEggExpOptions.h"
 #include "maxToEggConverter.h"
 #include "maxToEggConverter.h"
 #include "maxEgg.h"
 #include "maxEgg.h"
 
 
 #include "maxDllEntry.cxx"
 #include "maxDllEntry.cxx"
-#include "maxLogger.cxx"
 #include "maxEgg.cxx"
 #include "maxEgg.cxx"
 #include "maxEggExpOptions.cxx"
 #include "maxEggExpOptions.cxx"
 #include "maxNodeDesc.cxx"
 #include "maxNodeDesc.cxx"

Some files were not shown because too many files changed in this diff