Enlightenment CVS committal Author : doursse Project : e17 Module : proto/epdf
Dir : e17/proto/epdf/src/lib Modified Files: ewl_pdf.c Log Message: remove useless checks =================================================================== RCS file: /cvs/e/e17/proto/epdf/src/lib/ewl_pdf.c,v retrieving revision 1.14 retrieving revision 1.15 diff -u -3 -r1.14 -r1.15 --- ewl_pdf.c 20 Apr 2008 21:58:17 -0000 1.14 +++ ewl_pdf.c 20 Apr 2008 22:25:28 -0000 1.15 @@ -221,12 +221,6 @@ DCHECK_PARAM_PTR(pdf); DCHECK_TYPE(pdf, EWL_PDF_TYPE); - if (!pdf) { - if (width) *width = 0; - if (height) *height = 0; - DRETURN(DLEVEL_STABLE); - } - if (width) *width = epdf_page_width_get (pdf->pdf_page); if (height) *height = epdf_page_height_get (pdf->pdf_page); @@ -248,7 +242,7 @@ DCHECK_PARAM_PTR(pdf); DCHECK_TYPE(pdf, EWL_PDF_TYPE); - if (!pdf || !pdf->pdf_page) + if (!pdf->pdf_page) DRETURN(DLEVEL_STABLE); epdf_page_orientation_set (pdf->pdf_page, o); @@ -270,7 +264,7 @@ DCHECK_PARAM_PTR_RET(pdf, EPDF_PAGE_ORIENTATION_PORTRAIT); DCHECK_TYPE_RET(pdf, EWL_PDF_TYPE, EPDF_PAGE_ORIENTATION_PORTRAIT); - if (!pdf || !pdf->pdf_page) + if (!pdf->pdf_page) DRETURN_INT(EPDF_PAGE_ORIENTATION_PORTRAIT, DLEVEL_STABLE); DRETURN_INT(epdf_page_orientation_get (pdf->pdf_page), DLEVEL_STABLE); @@ -293,9 +287,6 @@ DCHECK_PARAM_PTR(pdf); DCHECK_TYPE(pdf, EWL_PDF_TYPE); - if (!pdf) - DLEAVE_FUNCTION(DLEVEL_STABLE); - epdf_page_scale_set(pdf->pdf_page, hscale, vscale); ewl_callback_call (EWL_WIDGET (pdf), EWL_CALLBACK_REVEAL); @@ -336,9 +327,6 @@ DCHECK_PARAM_PTR(pdf); DCHECK_TYPE(pdf, EWL_PDF_TYPE); - if (!pdf) - DLEAVE_FUNCTION(DLEVEL_STABLE); - page = epdf_page_page_get(pdf->pdf_page); if (page < (epdf_document_page_count_get(pdf->pdf_document) - 1)) page++; @@ -360,9 +348,6 @@ DENTER_FUNCTION(DLEVEL_STABLE); DCHECK_PARAM_PTR(pdf); DCHECK_TYPE(pdf, EWL_PDF_TYPE); - - if (!pdf) - DLEAVE_FUNCTION(DLEVEL_STABLE); page = epdf_page_page_get(pdf->pdf_page); if (page > 0) ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs