Dead code removed

This commit is contained in:
Bertrand Songis
2019-06-21 12:57:33 +02:00
parent 3d436f9d5c
commit d6c6b0e653
+1 -12
View File
@@ -34,20 +34,15 @@
#include <SDL.h>
#endif
uint8_t MCUCSR, MCUSR, MCUCR;
volatile uint8_t pina=0xff, pinb=0xff, pinc=0xff, pind, pine=0xff, pinf=0xff, ping=0xff, pinh=0xff, pinj=0, pinl=0;
uint8_t portb, portc, porth=0, dummyport;
uint16_t dummyport16;
int g_snapshot_idx = 0;
uint8_t simu_start_mode = 0;
char * main_thread_error = NULL;
char * main_thread_error = nullptr;
bool simu_shutdown = false;
bool simu_running = false;
#if defined(STM32)
uint32_t Peri1_frequency, Peri2_frequency;
GPIO_TypeDef gpioa, gpiob, gpioc, gpiod, gpioe, gpiof, gpiog, gpioh, gpioi, gpioj;
TIM_TypeDef tim1, tim2, tim3, tim4, tim5, tim6, tim7, tim8, tim9, tim10;
RCC_TypeDef rcc;
@@ -80,14 +75,12 @@ void toplcdOff()
uint64_t simuTimerMicros(void)
{
#if SIMPGMSPC_USE_QT
static QElapsedTimer ticker;
if (!ticker.isValid())
ticker.start();
return ticker.nsecsElapsed() / 1000;
#elif defined(_MSC_VER)
static double freqScale = 0.0;
static LARGE_INTEGER firstTick;
LARGE_INTEGER newTick;
@@ -106,12 +99,9 @@ uint64_t simuTimerMicros(void)
QueryPerformanceCounter(&newTick);
// compute the elapsed time
return (newTick.QuadPart - firstTick.QuadPart) * freqScale;
#else // GNUC
auto now = std::chrono::steady_clock::now();
return (uint64_t) std::chrono::duration_cast<std::chrono::microseconds>(now.time_since_epoch()).count();
#endif
}
@@ -389,7 +379,6 @@ void StartAudioThread(int volumeGain)
#ifdef __linux__
pthread_setname_np(simuAudio.threadPid, "audio");
#endif
return;
}
void StopAudioThread()