Commit 89f590a1 authored by jean-pierre charras's avatar jean-pierre charras
Browse files

Pcbnew: Pcad2kicad: remove dead code.

parent fa0a5141
Loading
Loading
Loading
Loading
+0 −32
Original line number Diff line number Diff line
@@ -902,38 +902,6 @@ void PCB::Parse( wxStatusBar* aStatusBar, wxXmlDocument* aXmlDoc, wxString aActu
}


void PCB::WriteToFile( wxString aFileName )
{
    wxFile  f;
    int     i;

    f.Open( aFileName, wxFile::write );

    // LIBRARY
    f.Write( wxT( "PCBNEW-LibModule-V1  01/01/2001-01:01:01\n" ) );
    f.Write( wxT( "\n" ) );
    f.Write( wxT( "$INDEX\n" ) );

    for( i = 0; i < (int) m_pcbComponents.GetCount(); i++ )
    {
        if( m_pcbComponents[i]->m_objType == wxT( 'M' ) )
            f.Write( m_pcbComponents[i]->m_name.text + wxT( "\n" ) );
    }

    f.Write( wxT( "$EndINDEX\n" ) );

    for( i = 0; i < (int) m_pcbComponents.GetCount(); i++ )
    {
        if( m_pcbComponents[i]->m_objType == wxT( 'M' ) )
            m_pcbComponents[i]->WriteToFile( &f, wxT( 'L' ) );
    }

    f.Write( wxT( "$EndLIBRARY\n" ) );

    f.Close();
}


void PCB::AddToBoard()
{
    int i;
+0 −1
Original line number Diff line number Diff line
@@ -61,7 +61,6 @@ public:
                           wxXmlDocument* aXmlDoc,
                           wxString     aActualConversion );

    virtual void    WriteToFile( wxString aFileName );
    void            AddToBoard();

private:
+0 −16
Original line number Diff line number Diff line
@@ -124,22 +124,6 @@ void PCB_ARC::Parse( XNODE* aNode,
}


void PCB_ARC::WriteToFile( wxFile* aFile, char aFileType )
{
/*
 *  DC ox oy fx fy w  DC is a Draw Circle  DC Xcentre Ycentre Xpoint Ypoint Width Layer
 *  DA x0 y0 x1 y1 angle width layer  DA is a Draw ArcX0,y0 = Start point x1,y1 = end point
 */
    if( aFileType == wxT( 'L' ) )    // Library component
    {
        aFile->Write( wxString::Format( wxT( "DA %d %d %d %d %d %d %d\n" ),
                                        m_positionX, m_positionY, m_startX,
                                        m_startY, m_angle, m_width,
                                        m_KiCadLayer ) );    // ValueString
    }
}


void PCB_ARC::SetPosOffset( int aX_offs, int aY_offs )
{
    PCB_COMPONENT::SetPosOffset( aX_offs, aY_offs );
+0 −1
Original line number Diff line number Diff line
@@ -50,7 +50,6 @@ public:
    virtual void    Parse( XNODE* aNode, int aLayer,
                           wxString aDefaultMeasurementUnit, wxString aActualConversion );

    virtual void    WriteToFile( wxFile* aFile, char aFileType );
    virtual void    SetPosOffset( int aX_offs, int aY_offs );
    void            AddToModule( MODULE* aModule );
    void            AddToBoard();
+0 −4
Original line number Diff line number Diff line
@@ -61,10 +61,6 @@ PCB_COMPONENT::~PCB_COMPONENT()
}


void PCB_COMPONENT::WriteToFile( wxFile* aFile, char aFileType )
{
}


void PCB_COMPONENT::AddToModule( MODULE* aModule )
{
Loading