瀏覽代碼

Removed obsolete class CondBlock

Alois Mahdal (@azzgoat) 12 年之前
父節點
當前提交
0e328c573b
共有 2 個檔案被更改,包括 2 行新增48 行删除
  1. 0
    37
      lib/SugarTrail/Template/CondBlock.pm
  2. 2
    11
      notes/classes.md

+ 0
- 37
lib/SugarTrail/Template/CondBlock.pm 查看文件

@@ -1,37 +0,0 @@
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 查看文件

@@ -2,21 +2,12 @@ Classes!
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 8
     SugarTrail::Repo
19 9
     SugarTrail::Repo::FileSystem
10
+    SugarTrail::Template::Condition
20 11
     SugarTrail::Template::Master
21 12
     SugarTrail::Template::Slave
22 13