Remove PathElement::*
authorIan Beckwith <ianb@erislabs.net>
Mon, 18 Oct 2010 07:31:52 +0000 (08:31 +0100)
committerIan Beckwith <ianb@erislabs.net>
Mon, 18 Oct 2010 07:31:52 +0000 (08:31 +0100)
lib/ID3FS/PathElement/Album.pm [deleted file]
lib/ID3FS/PathElement/Artist.pm [deleted file]
lib/ID3FS/PathElement/Boolean.pm [deleted file]
lib/ID3FS/PathElement/File.pm [deleted file]
lib/ID3FS/PathElement/Tag.pm [deleted file]
lib/ID3FS/PathElement/Tagval.pm [deleted file]

diff --git a/lib/ID3FS/PathElement/Album.pm b/lib/ID3FS/PathElement/Album.pm
deleted file mode 100644 (file)
index 8eed935..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-package ID3FS::PathElement::Album;
-
-use strict;
-use warnings;
-
-sub new
-{
-    my $proto=shift;
-    my $class=ref($proto) || $proto;
-    my $self={};
-    bless($self,$class);
-
-    $self->{db}=shift;
-    $self->{name}=shift;
-    $self->{id}=($self->{db}->lookup_id("albums", $self->{name}));
-    return(undef) unless(defined($self->{id}));
-    return $self;
-}
-
-sub type { return "album"; }
-sub id { return shift->{id}; }
-1;
diff --git a/lib/ID3FS/PathElement/Artist.pm b/lib/ID3FS/PathElement/Artist.pm
deleted file mode 100644 (file)
index 55fde54..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-package ID3FS::PathElement::Artist;
-
-use strict;
-use warnings;
-
-sub new
-{
-    my $proto=shift;
-    my $class=ref($proto) || $proto;
-    my $self={};
-    bless($self,$class);
-
-    $self->{db}=shift;
-    $self->{name}=shift;
-    $self->{id}=($self->{db}->lookup_id("artists", $self->{name}));
-    return(undef) unless(defined($self->{id}));
-    return $self;
-}
-
-sub type { return "artist"; }
-sub id { return shift->{id}; }
-
-1;
diff --git a/lib/ID3FS/PathElement/Boolean.pm b/lib/ID3FS/PathElement/Boolean.pm
deleted file mode 100644 (file)
index cf7ff80..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-package ID3FS::PathElement::Boolean;
-
-use strict;
-use warnings;
-
-sub new
-{
-    my $proto=shift;
-    my $class=ref($proto) || $proto;
-    my $self={};
-    bless($self,$class);
-
-    $self->{db}=shift;
-    $self->{name}=shift;
-
-    return $self;
-}
-
-sub type { return "boolean"; }
-sub id { return shift->{id}; }
-
-1;
diff --git a/lib/ID3FS/PathElement/File.pm b/lib/ID3FS/PathElement/File.pm
deleted file mode 100644 (file)
index 0db80e4..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-package ID3FS::PathElement::File;
-
-use strict;
-use warnings;
-
-sub new
-{
-    my $proto=shift;
-    my $class=ref($proto) || $proto;
-    my $self={};
-    bless($self,$class);
-
-    $self->{db}=shift;
-    $self->{name}=shift;
-    $self->{id}=$self->{db}->lookup_id("files", $self->{name});
-    return(undef) unless(defined($self->{id}));
-    return $self;
-}
-
-sub type { return "file"; }
-sub id { return shift->{id}; }
-
-1;
diff --git a/lib/ID3FS/PathElement/Tag.pm b/lib/ID3FS/PathElement/Tag.pm
deleted file mode 100644 (file)
index 3ddb659..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-package ID3FS::PathElement::Tag;
-
-use strict;
-use warnings;
-
-sub new
-{
-    my $proto=shift;
-    my $class=ref($proto) || $proto;
-    my $self={};
-    bless($self,$class);
-
-    $self->{db}=shift;
-    $self->{name}=shift;
-    $self->{parents_id}=shift;
-    $self->{id}=$self->{db}->lookup_id("tags", $self->{name}, $self->{parents_id});
-    return(undef) unless(defined($self->{id}));
-    return($self);
-}
-
-sub type { return "tag"; }
-sub id { return shift->{id}; }
-
-1;
diff --git a/lib/ID3FS/PathElement/Tagval.pm b/lib/ID3FS/PathElement/Tagval.pm
deleted file mode 100644 (file)
index 33ed3f8..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-package ID3FS::PathElement::Tagval;
-
-use strict;
-use warnings;
-
-sub new
-{
-    my $proto=shift;
-    my $class=ref($proto) || $proto;
-    my $self={};
-    bless($self,$class);
-
-    $self->{db}=shift;
-    $self->{name}=shift;
-    $self->{id}=$self->{db}->lookup_id("tagvals", $self->{name});
-    return(undef) unless(defined($self->{id}));
-    return $self;
-}
-
-sub type { return "tagval"; }
-sub id { return shift->{id}; }
-
-1;