Skip to content

Commit

Permalink
removed non-class constants TEXY_* (BC break!)
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Aug 3, 2011
1 parent 09b3d0f commit 89d5f98
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 31 deletions.
19 changes: 2 additions & 17 deletions Texy/Texy.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@
* @package Texy
*/


define('TEXY_VERSION', '3.0-dev');



/**
* Check PHP configuration.
*/
Expand Down Expand Up @@ -86,18 +83,6 @@ public function __construct($message = '%msg.')



/**
* For Texy 1 backward compatibility.
*/
define('TEXY_ALL', TRUE);
define('TEXY_NONE', FALSE);
define('TEXY_CONTENT_MARKUP', "\x17");
define('TEXY_CONTENT_REPLACED', "\x16");
define('TEXY_CONTENT_TEXTUAL', "\x15");
define('TEXY_CONTENT_BLOCK', "\x14");




/**
* Texy! - Convert plain text to XHTML format using {@link process()}.
Expand All @@ -116,7 +101,7 @@ class Texy extends TexyObject
const NONE = FALSE;

// Texy version
const VERSION = TEXY_VERSION;
const VERSION = '3.0-dev';
const REVISION = '$WCREV$ released on $WCDATE$';

// types of protection marks
Expand Down
9 changes: 0 additions & 9 deletions Texy/modules/TexyBlockModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,6 @@ public function pattern($parser, $matches)



// for backward compatibility
function outdent($s)
{
trigger_error('Use Texy::outdent()', E_USER_WARNING);
return Texy::outdent($s);
}



/**
* Finish invocation.
*
Expand Down
5 changes: 0 additions & 5 deletions Texy/modules/TexyHeadingModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@



// for Texy 1 backward compatibility
define('TEXY_HEADING_DYNAMIC', 1);
define('TEXY_HEADING_FIXED', 2);


/**
* Heading module.
*
Expand Down

0 comments on commit 89d5f98

Please sign in to comment.