From 059f8f5bc9a42e95a3155fa3c550608fa8ea73c3 Mon Sep 17 00:00:00 2001 From: Richard Schwab Date: Mon, 9 Oct 2017 22:06:05 +0200 Subject: [PATCH] Remove dead macro code (#4164) The barcode_types macro existed twice in the code, the second occurrence overriding the first one. This commit removes the first occurrence which is essentially dead code. --- resources/macros/macros.php | 29 +++++------------------------ 1 file changed, 5 insertions(+), 24 deletions(-) diff --git a/resources/macros/macros.php b/resources/macros/macros.php index 9382367e05..f600ff6049 100644 --- a/resources/macros/macros.php +++ b/resources/macros/macros.php @@ -398,31 +398,8 @@ Form::macro('time_display_format', function ($name = "time_display_format", $sel /** * Barcode macro -* Generates the dropdown menu of available barcodes +* Generates the dropdown menu of available 1D barcodes */ -Form::macro('barcode_types', function ($name = "barcode_type", $selected = null, $class = null) { - - $barcode_types = array( - 'QRCODE'=>"QR Code", - 'PDF417'=>'PDF417', - 'DATAMATRIX'=>'DATAMATRIX', - 'C128'=>'Code 128' - ); - - $select = ''; - - return $select; - -}); - - - Form::macro('alt_barcode_types', function ($name = "alt_barcode", $selected = null, $class = null) { $barcode_types = array( @@ -445,6 +422,10 @@ Form::macro('alt_barcode_types', function ($name = "alt_barcode", $selected = nu }); +/** +* Barcode macro +* Generates the dropdown menu of available 2D barcodes +*/ Form::macro('barcode_types', function ($name = "barcode_type", $selected = null, $class = null) { $barcode_types = array(