aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ManaTools/Shared/disk_backend/Plugin.pm
diff options
context:
space:
mode:
authorMaarten Vanraes <alien@mageia.org>2016-07-21 16:19:41 +0200
committerMaarten Vanraes <alien@mageia.org>2016-07-21 16:19:41 +0200
commit1774a5cfb4dc04b5ff1e7be7955536998b1a96e4 (patch)
treec4afe491c4eff581c756cdb3b82030d1e33ffb18 /lib/ManaTools/Shared/disk_backend/Plugin.pm
parentc41ff5335b1bcf111faa88039ba0189bc4912424 (diff)
downloadmanatools-1774a5cfb4dc04b5ff1e7be7955536998b1a96e4.tar
manatools-1774a5cfb4dc04b5ff1e7be7955536998b1a96e4.tar.gz
manatools-1774a5cfb4dc04b5ff1e7be7955536998b1a96e4.tar.bz2
manatools-1774a5cfb4dc04b5ff1e7be7955536998b1a96e4.tar.xz
manatools-1774a5cfb4dc04b5ff1e7be7955536998b1a96e4.zip
remove IO subsystem
Diffstat (limited to 'lib/ManaTools/Shared/disk_backend/Plugin.pm')
-rw-r--r--lib/ManaTools/Shared/disk_backend/Plugin.pm72
1 files changed, 2 insertions, 70 deletions
diff --git a/lib/ManaTools/Shared/disk_backend/Plugin.pm b/lib/ManaTools/Shared/disk_backend/Plugin.pm
index 61dd767a..f8182637 100644
--- a/lib/ManaTools/Shared/disk_backend/Plugin.pm
+++ b/lib/ManaTools/Shared/disk_backend/Plugin.pm
@@ -26,21 +26,6 @@ package ManaTools::Shared::disk_backend::Plugin;
...
});
- override('probeio', sub {
- ...
- });
-
- 1;
-
- package ManaTools::Shared::disk_backend::IO::Bar;
- use Moose;
-
- extend 'ManaTools::Shared::disk_backend::IO';
-
- has '+type', default => 'bar';
-
- ...
-
1;
package ManaTools::Shared::disk_backend::Part::Baz;
@@ -49,8 +34,7 @@ package ManaTools::Shared::disk_backend::Plugin;
extend 'ManaTools::Shared::disk_backend::Part';
has '+type', default => 'baz';
- has '+in_restriction', default => sub { ... };
- has '+out_restriction', default => sub { ... };
+ has '+restrictions', default => sub { ... };
...
@@ -177,7 +161,7 @@ sub save {
=head3 DESCRIPTION
- this is a default method for probing IO's and/or Part's, the idea is to override it if needed
+ this is a default method for probing Part's, the idea is to override it if needed
=cut
@@ -214,32 +198,6 @@ sub changedpart {
#=============================================================
-=head2 loadio
-
-=head3 INPUT
-
- $io: ManaTools::Shared::disk_backend::IO
-
-=head3 OUTPUT
-
- 0 if failed, 1 if success
-
-=head3 DESCRIPTION
-
- this is a default method for loading a Part from a specific IO, the idea is to override it if needed
-
-=cut
-
-#=============================================================
-sub loadio {
- my $self = shift;
- my $io = shift;
-
- 1;
-}
-
-#=============================================================
-
=head2 savepart
=head3 INPUT
@@ -266,32 +224,6 @@ sub savepart {
#=============================================================
-=head2 probeio
-
-=head3 INPUT
-
- $io: ManaTools::Shared::disk_backend::IO
-
-=head3 OUTPUT
-
- 0 if failed, 1 if success
-
-=head3 DESCRIPTION
-
- this is a default method for probing specific a specific IO, the idea is to override it if needed
-
-=cut
-
-#=============================================================
-sub probeio {
- my $self = shift;
- my $io = shift;
-
- 1;
-}
-
-#=============================================================
-
=head2 tool_exec
=head3 INPUT