pcbnew: remove dead legacy save code
This commit is contained in:
parent
ef3aa01e7d
commit
3fd179cd10
File diff suppressed because it is too large
Load Diff
|
@ -79,16 +79,6 @@ public:
|
||||||
|
|
||||||
BOARD* Load( const wxString& aFileName, BOARD* aAppendToMe, const PROPERTIES* aProperties = NULL );
|
BOARD* Load( const wxString& aFileName, BOARD* aAppendToMe, const PROPERTIES* aProperties = NULL );
|
||||||
|
|
||||||
/* we let go of "save" support when the number of CU layers were expanded from 16 to 32.
|
|
||||||
void Save( const wxString& aFileName, BOARD* aBoard, const PROPERTIES* aProperties = NULL );
|
|
||||||
|
|
||||||
void FootprintSave( const wxString& aLibraryPath, const MODULE* aFootprint,
|
|
||||||
const PROPERTIES* aProperties = NULL );
|
|
||||||
void FootprintDelete( const wxString& aLibraryPath, const wxString& aFootprintName, const PROPERTIES* aProperties = NULL );
|
|
||||||
|
|
||||||
void FootprintLibCreate( const wxString& aLibraryPath, const PROPERTIES* aProperties = NULL );
|
|
||||||
*/
|
|
||||||
|
|
||||||
wxArrayString FootprintEnumerate( const wxString& aLibraryPath, const PROPERTIES* aProperties = NULL);
|
wxArrayString FootprintEnumerate( const wxString& aLibraryPath, const PROPERTIES* aProperties = NULL);
|
||||||
|
|
||||||
MODULE* FootprintLoad( const wxString& aLibraryPath, const wxString& aFootprintName,
|
MODULE* FootprintLoad( const wxString& aLibraryPath, const wxString& aFootprintName,
|
||||||
|
@ -125,7 +115,6 @@ protected:
|
||||||
|
|
||||||
LINE_READER* m_reader; ///< no ownership here.
|
LINE_READER* m_reader; ///< no ownership here.
|
||||||
FILE* m_fp; ///< no ownership here.
|
FILE* m_fp; ///< no ownership here.
|
||||||
wxString m_filename; ///< for saves only, name is in m_reader for loads
|
|
||||||
|
|
||||||
wxString m_field; ///< reused to stuff MODULE fields.
|
wxString m_field; ///< reused to stuff MODULE fields.
|
||||||
int m_loading_format_version; ///< which BOARD_FORMAT_VERSION am I Load()ing?
|
int m_loading_format_version; ///< which BOARD_FORMAT_VERSION am I Load()ing?
|
||||||
|
@ -222,76 +211,6 @@ protected:
|
||||||
|
|
||||||
//-----</ load/parse functions>---------------------------------------------
|
//-----</ load/parse functions>---------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
//-----<save functions>-----------------------------------------------------
|
|
||||||
#if 0
|
|
||||||
/**
|
|
||||||
* Function writeError
|
|
||||||
* returns an error message wxString containing the filename being
|
|
||||||
* currently written.
|
|
||||||
*/
|
|
||||||
wxString writeError() const;
|
|
||||||
|
|
||||||
/// encapsulate the BIU formatting tricks in one place.
|
|
||||||
int biuSprintf( char* buf, BIU aValue ) const;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Function fmtBIU
|
|
||||||
* converts a BIU to engineering units by scaling and formatting to ASCII.
|
|
||||||
* This function is the complement of biuParse(). One has to know what the
|
|
||||||
* other is doing.
|
|
||||||
*/
|
|
||||||
std::string fmtBIU( BIU aValue ) const;
|
|
||||||
|
|
||||||
std::string fmtBIUPair( BIU first, BIU second ) const;
|
|
||||||
|
|
||||||
std::string fmtBIUPoint( const wxPoint& aPoint ) const
|
|
||||||
{
|
|
||||||
return fmtBIUPair( aPoint.x, aPoint.y );
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string fmtBIUSize( const wxSize& aSize ) const
|
|
||||||
{
|
|
||||||
return fmtBIUPair( aSize.x, aSize.y );
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Function fmtDEG
|
|
||||||
* formats an angle in a way particular to a board file format. This function
|
|
||||||
* is the opposite or complement of degParse(). One has to know what the
|
|
||||||
* other is doing.
|
|
||||||
*/
|
|
||||||
std::string fmtDEG( double aAngle ) const;
|
|
||||||
|
|
||||||
void saveGENERAL( const BOARD* aBoard ) const;
|
|
||||||
void saveSHEET( const BOARD* aBoard ) const;
|
|
||||||
void saveSETUP( const BOARD* aBoard ) const;
|
|
||||||
void saveBOARD_ITEMS( const BOARD* aBoard ) const;
|
|
||||||
|
|
||||||
void saveMODULE_TEXT( const TEXTE_MODULE* aText ) const;
|
|
||||||
void saveMODULE_EDGE( const EDGE_MODULE* aGraphic ) const;
|
|
||||||
void savePAD( const D_PAD* aPad ) const;
|
|
||||||
|
|
||||||
void saveNETINFO_ITEM( const NETINFO_ITEM* aNet ) const;
|
|
||||||
void saveNETCLASSES( const NETCLASSES* aNetClasses ) const;
|
|
||||||
void saveNETCLASS( const boost::shared_ptr<NETCLASS> aNetclass ) const;
|
|
||||||
|
|
||||||
void savePCB_TEXT( const TEXTE_PCB* aText ) const;
|
|
||||||
void savePCB_TARGET( const PCB_TARGET* aTarget ) const;
|
|
||||||
void savePCB_LINE( const DRAWSEGMENT* aStroke ) const;
|
|
||||||
void saveDIMENSION( const DIMENSION* aDimension ) const;
|
|
||||||
void saveTRACK( const TRACK* aTrack ) const;
|
|
||||||
void saveBOARD( const BOARD* aBoard ) const;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Function saveZONE_CONTAINER
|
|
||||||
* saves the new polygon zones.
|
|
||||||
*/
|
|
||||||
void saveZONE_CONTAINER( const ZONE_CONTAINER* aZone ) const;
|
|
||||||
|
|
||||||
//-----</save functions>----------------------------------------------------
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/// we only cache one footprint library for now, this determines which one.
|
/// we only cache one footprint library for now, this determines which one.
|
||||||
void cacheLib( const wxString& aLibraryPath );
|
void cacheLib( const wxString& aLibraryPath );
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue