From: ritsuka Date: Sun, 29 Mar 2015 07:02:00 +0000 (+0000) Subject: Remove unused hb_get_scancount function X-Git-Tag: 1.0.0~1321 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=476eb6ccaa4e655c43d85d8111f27451aa0a8f8f;p=handbrake Remove unused hb_get_scancount function git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7026 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- diff --git a/libhb/hb.c b/libhb/hb.c index 84347d768..be4d75b9b 100644 --- a/libhb/hb.c +++ b/libhb/hb.c @@ -1540,15 +1540,6 @@ void hb_get_state2( hb_handle_t * h, hb_state_t * s ) hb_unlock( h->state_lock ); } -/** - * Called in MacGui in UpdateUI to check - * for a new scan being completed to set a new source - */ -int hb_get_scancount( hb_handle_t * h) - { - return h->scanCount; - } - /** * Closes access to libhb by freeing the hb_handle_t handle ontained in hb_init. * @param _h Pointer to handle to hb_handle_t. diff --git a/libhb/hb.h b/libhb/hb.h index cb53d0d9d..739f16b3f 100644 --- a/libhb/hb.h +++ b/libhb/hb.h @@ -117,9 +117,6 @@ hb_interjob_t * hb_interjob_get( hb_handle_t * ); Look at test/test.c to see how to use it. */ void hb_get_state( hb_handle_t *, hb_state_t * ); void hb_get_state2( hb_handle_t *, hb_state_t * ); -/* hb_get_scancount() is called by the MacGui in UpdateUI to - check for a new scan during HB_STATE_WORKING phase */ -int hb_get_scancount( hb_handle_t * ); /* hb_close() Aborts all current jobs if any, frees memory. */ diff --git a/win/CS/HandBrake.ApplicationServices/Interop/HbLib/HbFunctions.cs b/win/CS/HandBrake.ApplicationServices/Interop/HbLib/HbFunctions.cs index dab5d1bb3..d22545c1e 100644 --- a/win/CS/HandBrake.ApplicationServices/Interop/HbLib/HbFunctions.cs +++ b/win/CS/HandBrake.ApplicationServices/Interop/HbLib/HbFunctions.cs @@ -136,12 +136,6 @@ namespace HandBrake.ApplicationServices.Interop.HbLib public static extern void hb_stop(IntPtr hbHandle); - /// Return Type: int - ///param0: hb_handle_t* - [DllImport("hb.dll", EntryPoint = "hb_get_scancount", CallingConvention = CallingConvention.Cdecl)] - public static extern int hb_get_scancount(IntPtr hbHandle); - - /// Return Type: void ///param0: hb_handle_t** [DllImport("hb.dll", EntryPoint = "hb_close", CallingConvention = CallingConvention.Cdecl)]