Akihiro Sagawa : winmm/tests: Get rid of unused functions.

Alexandre Julliard julliard at winehq.org
Mon Feb 1 16:13:09 CST 2021


Module: wine
Branch: master
Commit: cfbbde2abce1eedc7f53db3f8af8078fe4a11cac
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=cfbbde2abce1eedc7f53db3f8af8078fe4a11cac

Author: Akihiro Sagawa <sagawa.aki at gmail.com>
Date:   Thu Jan 28 21:42:20 2021 +0900

winmm/tests: Get rid of unused functions.

Signed-off-by: Akihiro Sagawa <sagawa.aki at gmail.com>
Signed-off-by: Andrew Eikum <aeikum at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/winmm/tests/wave.c       | 12 ------------
 dlls/winmm/tests/winmm_test.h |  1 -
 2 files changed, 13 deletions(-)

diff --git a/dlls/winmm/tests/wave.c b/dlls/winmm/tests/wave.c
index 8afb32d5c73..2f0c8443363 100644
--- a/dlls/winmm/tests/wave.c
+++ b/dlls/winmm/tests/wave.c
@@ -456,24 +456,12 @@ DWORD bytes_to_samples(DWORD bytes, LPWAVEFORMATEX pwfx)
     return bytes / pwfx->nBlockAlign;
 }
 
-DWORD bytes_to_ms(DWORD bytes, LPWAVEFORMATEX pwfx)
-{
-    return bytes_to_samples(bytes, pwfx) * 1000 / pwfx->nSamplesPerSec;
-}
-
 DWORD time_to_bytes(LPMMTIME mmtime, LPWAVEFORMATEX pwfx)
 {
     if (mmtime->wType == TIME_BYTES)
         return mmtime->u.cb;
     else if (mmtime->wType == TIME_SAMPLES)
         return mmtime->u.sample * pwfx->nBlockAlign;
-    else if (mmtime->wType == TIME_MS)
-        return mmtime->u.ms * pwfx->nAvgBytesPerSec / 1000;
-    else if (mmtime->wType == TIME_SMPTE)
-        return ((mmtime->u.smpte.hour * 60 * 60) +
-                (mmtime->u.smpte.min * 60) +
-                (mmtime->u.smpte.sec)) * pwfx->nAvgBytesPerSec +
-                mmtime->u.smpte.frame  * pwfx->nAvgBytesPerSec / 30;
 
     trace("FIXME: time_to_bytes() type not supported\n");
     return -1;
diff --git a/dlls/winmm/tests/winmm_test.h b/dlls/winmm/tests/winmm_test.h
index d5fb70afbde..98b461309d7 100644
--- a/dlls/winmm/tests/winmm_test.h
+++ b/dlls/winmm/tests/winmm_test.h
@@ -76,5 +76,4 @@ extern const char* wave_out_error(MMRESULT);
 extern const char* get_format_str(WORD format);
 extern const char* wave_time_format(UINT type);
 extern DWORD bytes_to_samples(DWORD bytes, LPWAVEFORMATEX pwfx);
-extern DWORD bytes_to_ms(DWORD bytes, LPWAVEFORMATEX pwfx);
 extern DWORD time_to_bytes(LPMMTIME mmtime, LPWAVEFORMATEX pwfx);




More information about the wine-cvs mailing list