Commit fd2afec6 authored by jean-pierre charras's avatar jean-pierre charras

Remove some fully outdated code (#pragma, from Henner Zeller's report, and some other things)

parent fcd17a59
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
include_directories(BEFORE ${INC_BEFORE}) include_directories(BEFORE ${INC_BEFORE})
include_directories( include_directories(
../potrace ../potrace
../polygon/kbool/include
../common ../common
${INC_AFTER} ${INC_AFTER}
) )
......
...@@ -28,11 +28,6 @@ ...@@ -28,11 +28,6 @@
* @brief Message panel implementation file. * @brief Message panel implementation file.
*/ */
#ifdef __GNUG__
#pragma implementation
#endif
#include <msgpanel.h> #include <msgpanel.h>
......
...@@ -27,9 +27,6 @@ ...@@ -27,9 +27,6 @@
* @file eeschema/menubar.cpp * @file eeschema/menubar.cpp
* @brief (Re)Create the main menubar for the schematic frame * @brief (Re)Create the main menubar for the schematic frame
*/ */
#ifdef __GNUG__
#pragma implementation
#endif
#include <fctsys.h> #include <fctsys.h>
#include <appl_wxstruct.h> #include <appl_wxstruct.h>
......
...@@ -27,10 +27,6 @@ ...@@ -27,10 +27,6 @@
* @file preferences.cpp * @file preferences.cpp
*/ */
#ifdef __GNUG__
#pragma implementation
#endif
#include <fctsys.h> #include <fctsys.h>
#include <appl_wxstruct.h> #include <appl_wxstruct.h>
#include <confirm.h> #include <confirm.h>
......
...@@ -134,7 +134,7 @@ void PCB_EDIT_FRAME::OnExportVRML( wxCommandEvent& event ) ...@@ -134,7 +134,7 @@ void PCB_EDIT_FRAME::OnExportVRML( wxCommandEvent& event )
wxString fullFilename = dlg.FilePicker()->GetPath(); wxString fullFilename = dlg.FilePicker()->GetPath();
subDirFor3Dshapes = dlg.GetSubdir(); subDirFor3Dshapes = dlg.GetSubdir();
if( ! wxDirExists( subDirFor3Dshapes ) ) if( export3DFiles && !wxDirExists( subDirFor3Dshapes ) )
wxMkdir( subDirFor3Dshapes ); wxMkdir( subDirFor3Dshapes );
if( ! ExportVRML_File( fullFilename, scale, export3DFiles, subDirFor3Dshapes ) ) if( ! ExportVRML_File( fullFilename, scale, export3DFiles, subDirFor3Dshapes ) )
......
...@@ -1199,8 +1199,9 @@ static void export_vrml_module( MODEL_VRML& aModel, BOARD* aPcb, MODULE* aModule ...@@ -1199,8 +1199,9 @@ static void export_vrml_module( MODEL_VRML& aModel, BOARD* aPcb, MODULE* aModule
fname.Replace( wxT( "\\" ), wxT( "/" ) ); fname.Replace( wxT( "\\" ), wxT( "/" ) );
wxString source_fname = fname; wxString source_fname = fname;
if( aExport3DFiles ) // Change illegal characters if( aExport3DFiles )
{ {
// Change illegal characters in filenames
ChangeIllegalCharacters( fname, true ); ChangeIllegalCharacters( fname, true );
fname = a3D_Subdir + wxT( "/" ) + fname; fname = a3D_Subdir + wxT( "/" ) + fname;
......
...@@ -30,9 +30,6 @@ ...@@ -30,9 +30,6 @@
#include <python_scripting.h> #include <python_scripting.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#ifdef __GNUG__
#pragma implementation
#endif
#include <fctsys.h> #include <fctsys.h>
#include <wxstruct.h> #include <wxstruct.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment