simplify MSVCBackend::Process code
authorChristoph von Wittich <christoph_vw@reactos.org>
Thu, 20 Oct 2005 16:13:20 +0000 (16:13 +0000)
committerChristoph von Wittich <christoph_vw@reactos.org>
Thu, 20 Oct 2005 16:13:20 +0000 (16:13 +0000)
svn path=/trunk/; revision=18637

reactos/tools/rbuild/backend/msvc/msvc.cpp

index ba52451..3f0d8c0 100644 (file)
@@ -54,39 +54,20 @@ MSVCBackend::MSVCBackend(Project &project,
 void MSVCBackend::Process()\r
 {\r
 \r
-       string filename_dsw = ProjectNode.name + ".dsw";\r
        string filename_sln = ProjectNode.name + ".sln";\r
-\r
-       if (configuration.VSProjectVersion == "6.00")\r
-               printf ( "Creating MSVC workspace: %s\n", filename_dsw.c_str() );\r
-       else\r
-               printf ( "Creating MSVC workspace: %s\n", filename_sln.c_str() );\r
+       printf ( "Creating MSVC workspace: %s\n", filename_sln.c_str() );\r
        \r
        ProcessModules();\r
+       m_slnFile = fopen ( filename_sln.c_str(), "wb" );\r
 \r
-       if (configuration.VSProjectVersion == "6.00") { \r
-               m_dswFile = fopen ( filename_dsw.c_str(), "wb" );\r
-\r
-               if ( !m_dswFile )\r
-               {\r
-                       printf ( "Could not create file '%s'.\n", filename_dsw.c_str() );\r
-                       return;\r
-               }\r
-               _generate_wine_dsw ( m_dswFile );\r
-               fclose ( m_dswFile );\r
-       }\r
-       else {\r
-               m_slnFile = fopen ( filename_sln.c_str(), "wb" );\r
-       \r
-               if ( !m_slnFile )\r
-               {\r
-                       printf ( "Could not create file '%s'.\n", filename_sln.c_str() );\r
-                       return;\r
-               }\r
-               _generate_sln ( m_slnFile );\r
-               fclose ( m_slnFile );\r
+       if ( !m_slnFile )\r
+       {\r
+               printf ( "Could not create file '%s'.\n", filename_sln.c_str() );\r
+               return;\r
        }\r
 \r
+       _generate_sln ( m_slnFile );\r
+       fclose ( m_slnFile );\r
        printf ( "Done.\n" );\r
 }\r
 \r