[Bps-public-commit] Path-Dispatcher branch, pass-match, updated. e48aded655b20b24ce853ef70b76f905f66c51d2

Shawn Moore sartak at bestpractical.com
Sun Oct 10 10:52:20 EDT 2010


The branch, pass-match has been updated
       via  e48aded655b20b24ce853ef70b76f905f66c51d2 (commit)
      from  a26160dd83700a59e4c5388e69db5ed327e39c81 (commit)

Summary of changes:
 lib/Path/Dispatcher.pm      |   11 -----------
 t/900-use-path-dispatcher.t |   12 ------------
 2 files changed, 0 insertions(+), 23 deletions(-)
 delete mode 100644 t/900-use-path-dispatcher.t

- Log -----------------------------------------------------------------
commit e48aded655b20b24ce853ef70b76f905f66c51d2
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Sun Oct 10 10:52:13 2010 -0400

    Don't bother with this warning

diff --git a/lib/Path/Dispatcher.pm b/lib/Path/Dispatcher.pm
index 16f02b4..0c697d2 100644
--- a/lib/Path/Dispatcher.pm
+++ b/lib/Path/Dispatcher.pm
@@ -83,17 +83,6 @@ sub _autobox_path {
     return $path;
 }
 
-# We don't export anything, so if they request something, then try to error
-# helpfully
-sub import {
-    my $self    = shift;
-    my $package = caller;
-
-    if (@_) {
-        Carp::croak "'use Path::Dispatcher (@_)' called by $package. Did you mean to use Path::Dispatcher::Declarative?";
-    }
-}
-
 __PACKAGE__->meta->make_immutable;
 no Any::Moose;
 
diff --git a/t/900-use-path-dispatcher.t b/t/900-use-path-dispatcher.t
deleted file mode 100644
index dfd2f35..0000000
--- a/t/900-use-path-dispatcher.t
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/usr/bin/env perl
-use strict;
-use warnings;
-use Test::More tests => 1;
-
-eval "
-    package MyApp::Dispatcher;
-    use Path::Dispatcher -base;
-";
-
-like($@, qr/^'use Path::Dispatcher \(-base\)' called by MyApp::Dispatcher\. Did you mean to use Path::Dispatcher::Declarative\?/);
-

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list