]> granicus.if.org Git - openjpeg/commitdiff
remove deprecated v1 style function j2k_read_com
authorMickael Savinaud <savmickael@users.noreply.github.com>
Fri, 10 Aug 2012 07:42:41 +0000 (07:42 +0000)
committerMickael Savinaud <savmickael@users.noreply.github.com>
Fri, 10 Aug 2012 07:42:41 +0000 (07:42 +0000)
libopenjpeg/j2k.c

index 7c9ea4d95c917e1fd4ad6b7f677ad8f32f7411af..c71edf569f2624b82941399a54b0d17e1e482b0b 100644 (file)
@@ -453,11 +453,6 @@ static opj_bool j2k_write_com_v2(  opj_j2k_v2_t *p_j2k,
                                                                        struct opj_stream_private *p_stream,
                                                                        struct opj_event_mgr * p_manager );
 
-/**
-Read the COM marker (comment)
-@param j2k J2K handle
-*/
-static void j2k_read_com(opj_j2k_t *j2k);
 /**
  * Reads a COM marker (comments)
  * @param      p_header_data   the data contained in the COM box.
@@ -2578,14 +2573,6 @@ opj_bool j2k_write_com_v2(       opj_j2k_v2_t *p_j2k,
        return OPJ_TRUE;
 }
 
-static void j2k_read_com(opj_j2k_t *j2k) {
-       int len;
-       
-       opj_cio_t *cio = j2k->cio;
-
-       len = cio_read(cio, 2);
-       cio_skip(cio, len - 2);  
-}
 /**
  * Reads a COM marker (comments)
  * @param      p_header_data   the data contained in the COM box.
@@ -5657,7 +5644,7 @@ opj_dec_mstabent_t j2k_dec_mstab[] = {
   /*{J2K_MS_PPT, J2K_STATE_TPH, j2k_read_ppt},*/
   {J2K_MS_SOP, 0, 0},
   /*{J2K_MS_CRG, J2K_STATE_MH, j2k_read_crg},*/
-  {J2K_MS_COM, J2K_STATE_MH | J2K_STATE_TPH, j2k_read_com},
+  /*{J2K_MS_COM, J2K_STATE_MH | J2K_STATE_TPH, j2k_read_com},*/
 
 #ifdef USE_JPWL
   {J2K_MS_EPC, J2K_STATE_MH | J2K_STATE_TPH, j2k_read_epc},