Index: src/libchcore/TSpeedTracker.cpp =================================================================== diff -u -re96806b7f8ff7ca7e9f4afbea603e6351a3dc3e3 -ra380f7b2ae7d8fe6121e2d0a026b98ee2248c8b5 --- src/libchcore/TSpeedTracker.cpp (.../TSpeedTracker.cpp) (revision e96806b7f8ff7ca7e9f4afbea603e6351a3dc3e3) +++ src/libchcore/TSpeedTracker.cpp (.../TSpeedTracker.cpp) (revision a380f7b2ae7d8fe6121e2d0a026b98ee2248c8b5) @@ -109,18 +109,6 @@ return dResult / m_vSamples.size() * m_dSamplesPerSecond; } - void TSpeedTracker::AppendSamples(double dSpeed, size_t stSamplesCount) - { - if (m_vSamples.size() != m_stRequiredSamples) - THROW_CORE_EXCEPTION(eErr_InternalProblem); - - stSamplesCount = std::min(stSamplesCount, m_stRequiredSamples); - while (stSamplesCount--) - { - m_vSamples[GetNextSampleIndexAndIncrease()] = dSpeed; - } - } - size_t TSpeedTracker::GetNextSampleIndexAndIncrease() { size_t stResult = m_stNextSamplePos++; Index: src/libchcore/TSpeedTracker.h =================================================================== diff -u -re96806b7f8ff7ca7e9f4afbea603e6351a3dc3e3 -ra380f7b2ae7d8fe6121e2d0a026b98ee2248c8b5 --- src/libchcore/TSpeedTracker.h (.../TSpeedTracker.h) (revision e96806b7f8ff7ca7e9f4afbea603e6351a3dc3e3) +++ src/libchcore/TSpeedTracker.h (.../TSpeedTracker.h) (revision a380f7b2ae7d8fe6121e2d0a026b98ee2248c8b5) @@ -25,7 +25,6 @@ TSpeedTracker& operator=(const TSpeedTracker&); static double NormalizeValueByTime(unsigned long long ullValue, unsigned long long ullTime, unsigned long long ullNormalizeTime = 1000); - void AppendSamples(double dSpeed, size_t stSamplesCount); size_t GetNextSampleIndexAndIncrease(); void FinalizeIncompleteSample(double dSpeed, unsigned long long& ullInterval); Index: src/rc2lng/crc32.cpp =================================================================== diff -u -ra27d1acf1bda3c25b6dcce0d0eb0278009ce63ae -ra380f7b2ae7d8fe6121e2d0a026b98ee2248c8b5 --- src/rc2lng/crc32.cpp (.../crc32.cpp) (revision a27d1acf1bda3c25b6dcce0d0eb0278009ce63ae) +++ src/rc2lng/crc32.cpp (.../crc32.cpp) (revision a380f7b2ae7d8fe6121e2d0a026b98ee2248c8b5) @@ -119,41 +119,3 @@ return dwCRC; } - -/** Starts to calculate a crc32 checksum. - * \param[out] puiValue - a pointer to the unsigned int variable that will be used to process the crc checksum. - */ -void crc32_begin(unsigned int *puiValue) -{ - assert(puiValue != NULL); - if(!puiValue) - throw std::runtime_error("Invalid argument"); - - *puiValue=0xffffffff; -} - -/** Continues to calculate a crc32 checksum. May be called many times sequentially to calc the checksum - * of a very large buffer. - * \param[in/out] puiPrev - a previous value calculated - * \param[in] pbyData - pointer to a buffer with data which checksum is to be calculated - * \param[in] tLen - length of the data in a buffer - */ -void crc32_partial(unsigned int *puiPrev, const char *pbyData, size_t tLen) -{ - assert(puiPrev && pbyData); - if(!puiPrev || !pbyData) - throw std::runtime_error("Invalid argument"); - - for (size_t i=0;i