nascom1.cpp: Remove some unused code built on obsolete assumptions

* intv.cpp: Replace the preprocessor guard for some bitrotted cruft with #if 0
This commit is contained in:
AJR 2022-01-03 19:57:27 -05:00
parent 97de6a1cf2
commit b5f78b5b9e
2 changed files with 2 additions and 26 deletions

View File

@ -97,16 +97,11 @@ protected:
required_memory_region m_gfx1_region; required_memory_region m_gfx1_region;
required_ioport_array<8> m_keyboard; required_ioport_array<8> m_keyboard;
int m_tape_size;
uint8_t *m_tape_image;
int m_tape_index;
uint8_t m_kb_select; uint8_t m_kb_select;
uint8_t m_kb_control; uint8_t m_kb_control;
bool m_cassinbit, m_cassoutbit, m_cassold; bool m_cassinbit, m_cassoutbit, m_cassold;
u8 m_port00; u8 m_port00;
DECLARE_DEVICE_IMAGE_LOAD_MEMBER( load_nascom1_cassette );
DECLARE_DEVICE_IMAGE_UNLOAD_MEMBER( unload_nascom1_cassette );
template<int Dest> DECLARE_SNAPSHOT_LOAD_MEMBER( snapshot_cb ); template<int Dest> DECLARE_SNAPSHOT_LOAD_MEMBER( snapshot_cb );
}; };
@ -316,25 +311,6 @@ TIMER_DEVICE_CALLBACK_MEMBER( nascom2_state::nascom2_kansas_r )
} }
} }
// This stuff has never been connected up - what's it for?
[[maybe_unused]] DEVICE_IMAGE_LOAD_MEMBER( nascom_state::load_nascom1_cassette )
{
m_tape_size = image.length();
m_tape_image = (uint8_t*)image.ptr();
if (!m_tape_image)
return image_init_result::FAIL;
m_tape_index = 0;
return image_init_result::PASS;
}
[[maybe_unused]] DEVICE_IMAGE_UNLOAD_MEMBER( nascom_state::unload_nascom1_cassette )
{
m_tape_image = nullptr;
m_tape_size = m_tape_index = 0;
}
//************************************************************************** //**************************************************************************
// SNAPSHOTS // SNAPSHOTS

View File

@ -317,7 +317,7 @@ void set_tape_bit(int position, int data)
} }
#endif #endif
#if defined(LATER) #if 0
int intvkbd_tape_init(int id) int intvkbd_tape_init(int id)
{ {
FILE *tapefile; FILE *tapefile;
@ -682,7 +682,7 @@ INTERRUPT_GEN_MEMBER(intv_state::intv_interrupt)
m_stic->screenrefresh(); m_stic->screenrefresh();
} }
#if defined(LATER) #if 0
INTERRUPT_GEN( intvkbd_interrupt2 ) INTERRUPT_GEN( intvkbd_interrupt2 )
{ {