Remove GetExtraDependencies() function.
authorHervé Poussineau <hpoussin@reactos.org>
Tue, 9 Sep 2008 07:21:37 +0000 (07:21 +0000)
committerHervé Poussineau <hpoussin@reactos.org>
Tue, 9 Sep 2008 07:21:37 +0000 (07:21 +0000)
It was only called when the file extension was .c/.cc/.cpp/.cxx, and the function was returning empty string in those cases.

svn path=/trunk/; revision=36077

reactos/tools/rbuild/backend/mingw/modulehandler.cpp
reactos/tools/rbuild/backend/mingw/modulehandler.h

index 534ce0b..e907629 100644 (file)
@@ -263,33 +263,6 @@ MingwModuleHandler::GetBasename ( const string& filename ) const
        return "";
 }
 
-string
-MingwModuleHandler::GetExtraDependencies (
-       const FileLocation *file ) const
-{
-       string extension = GetExtension ( *file );
-       if ( extension == ".idl" || extension == ".IDL" )
-       {
-               const FileLocation *header;
-               switch ( module.type )
-               {
-                       case RpcServer: header = GetRpcServerHeaderFilename ( file ); break;
-                       case RpcClient: header = GetRpcClientHeaderFilename ( file ); break;
-                       case RpcProxy: header = GetRpcProxyHeaderFilename ( file ); break;
-                       case IdlHeader: header = GetIdlHeaderFilename ( file ); break;
-                       default: header = NULL; break;
-               }
-               if ( !header )
-                       return "";
-
-               string dependencies = backend->GetFullName ( *header );
-               delete header;
-               return " " + dependencies;
-       }
-       else
-               return "";
-}
-
 string
 MingwModuleHandler::GetCompilationUnitDependencies (
        const CompilationUnit& compilationUnit ) const
@@ -1327,7 +1300,7 @@ MingwModuleHandler::GenerateCommands (
        {
                GenerateGccCommand ( &sourceFile,
                                     customRule,
-                                    GetCompilationUnitDependencies ( compilationUnit ) + GetExtraDependencies ( &sourceFile ) + extraDependencies );
+                                    GetCompilationUnitDependencies ( compilationUnit ) + extraDependencies );
        }
        else if ( customRule )
                customRule->Execute ( fMakefile, backend, module, &sourceFile, clean_files );
index 09a7b17..86684b1 100644 (file)
@@ -80,7 +80,6 @@ protected:
        virtual void GetModuleSpecificCompilationUnits ( std::vector<CompilationUnit*>& compilationUnits );
        std::string GetWorkingDirectory () const;
        std::string GetBasename ( const std::string& filename ) const;
-       std::string GetExtraDependencies ( const FileLocation *file ) const;
        std::string GetCompilationUnitDependencies ( const CompilationUnit& compilationUnit ) const;
        const FileLocation* GetModuleArchiveFilename () const;
        std::string GetImportLibraryDependency ( const Module& importedModule );