Browse Source

Removed obsolete class CondBlock

Alois Mahdal (@azzgoat) 11 years ago
parent
commit
0e328c573b
2 changed files with 2 additions and 48 deletions
  1. 0
    37
      lib/SugarTrail/Template/CondBlock.pm
  2. 2
    11
      notes/classes.md

+ 0
- 37
lib/SugarTrail/Template/CondBlock.pm View File

1
-package SugarTrail::Template::CondBlock;
2
-# condition block
3
-# init()
4
-# parse(string)
5
-# matches(data)
6
-
7
-use strict;
8
-use warnings;
9
-
10
-use SugarTrail::Template::Condition;
11
-use Data::Dumper;
12
-
13
-sub init {
14
-    my $class = shift;
15
-    my $self = {};
16
-    return bless $self, $class;
17
-}
18
-
19
-sub parse {
20
-    my $self    = shift;
21
-    my $string  = shift;
22
-    my @parts = split ";", $string;
23
-    foreach (@parts) {
24
-        my $c = SugarTrail::Template::Condition->new($_);
25
-        push @{$self->{conds}}, $c;
26
-    }
27
-    return scalar @{ $self->{conds} };
28
-}
29
-
30
-
31
-
32
-sub match {
33
-    my $self = shift;
34
-    my $args = shift;
35
-}
36
-
37
-1;

+ 2
- 11
notes/classes.md View File

2
 ========
2
 ========
3
 
3
 
4
 
4
 
5
-Variant A
5
+Variant D
6
 ---------
6
 ---------
7
 
7
 
8
-    SugarTrail::CondBlock
9
-    SugarTrail::Master
10
-    SugarTrail::Repo
11
-    SugarTrail::Repo::FileSystem
12
-    SugarTrail::Slave
13
-
14
-Variant B
15
----------
16
-
17
-    SugarTrail::CondBlock
18
     SugarTrail::Repo
8
     SugarTrail::Repo
19
     SugarTrail::Repo::FileSystem
9
     SugarTrail::Repo::FileSystem
10
+    SugarTrail::Template::Condition
20
     SugarTrail::Template::Master
11
     SugarTrail::Template::Master
21
     SugarTrail::Template::Slave
12
     SugarTrail::Template::Slave
22
 
13