From 1378fb56f6873b93fe002e8aed001e92857b5b5c Mon Sep 17 00:00:00 2001 From: "hakan.sandell" Date: Tue, 3 Nov 2009 17:51:00 +0100 Subject: inc/handler cleanup removed Doku_Handler_Section class darcs-hash:20091103165100-9a5f4-b992cc4b716134f750ffffa678694b7ba05c541a.gz --- inc/parser/handler.php | 39 --------------------------------------- 1 file changed, 39 deletions(-) (limited to 'inc/parser') diff --git a/inc/parser/handler.php b/inc/parser/handler.php index 8ba3d1be1..c9a4fd6d9 100644 --- a/inc/parser/handler.php +++ b/inc/parser/handler.php @@ -1408,45 +1408,6 @@ class Doku_Handler_Table { } } -//------------------------------------------------------------------------ -class Doku_Handler_Section { - - function process($calls) { - - $sectionCalls = array(); - $inSection = false; - - foreach ( $calls as $call ) { - - if ( $call[0] == 'header' ) { - - if ( $inSection ) { - $sectionCalls[] = array('section_close',array(), $call[2]); - } - - $sectionCalls[] = $call; - $sectionCalls[] = array('section_open',array($call[1][1]), $call[2]); - $inSection = true; - - } else { - - if ($call[0] == 'section_open' ) { - $inSection = true; - } else if ($call[0] == 'section_open' ) { - $inSection = false; - } - $sectionCalls[] = $call; - } - } - - if ( $inSection ) { - $sectionCalls[] = array('section_close',array(), $call[2]); - } - - return $sectionCalls; - } - -} /** * Handler for paragraphs -- cgit v1.2.3