Pflichtenhefte bearbeiten
[kivitendo-erp.git] / SL / Presenter / RequirementSpec.pm
index fe9df96..b8a202d 100644 (file)
@@ -5,8 +5,7 @@ use strict;
 use parent qw(Exporter);
 
 use Exporter qw(import);
-our @EXPORT = qw(requirement_spec_text_block_jstree_data
-                 requirement_spec_item_jstree_data);
+our @EXPORT = qw(requirement_spec_text_block_jstree_data);
 
 use Carp;
 
@@ -22,18 +21,4 @@ sub requirement_spec_text_block_jstree_data {
   };
 }
 
-sub requirement_spec_item_jstree_data {
-  my ($self, $item, %params) = @_;
-
-  my @children = map { $self->requirement_spec_item_jstree_data($_, %params) } @{ $item->sorted_children };
-  my $type     = !$item->parent_id ? 'section' : 'functionblock';
-
-  return {
-    data     => join(' ', map { $_ || '' } ($item->fb_number, $item->title)),
-    metadata => { id =>         $item->id, type => $type },
-    attr     => { id => "fb-" . $item->id, href => $params{href} || '#' },
-    children => \@children,
-  };
-}
-
 1;