[Jifty-commit] r7528 - in Template-Declare/branches/mixmaster: . t

Jifty commits jifty-commit at lists.jifty.org
Thu Oct 8 13:24:16 EDT 2009


Author: theory
Date: Thu Oct  8 13:24:16 2009
New Revision: 7528

Modified:
   Template-Declare/branches/mixmaster/Changes
   Template-Declare/branches/mixmaster/lib/Template/Declare.pm
   Template-Declare/branches/mixmaster/t/aliasing.t

Log:
* Deprecated the undocumented "aliases()" and "alias_metadata()" methods, as
  they are no longer needed. They're now no-ops that issue warnings. To be
  removed altogether in a future version.



Modified: Template-Declare/branches/mixmaster/Changes
==============================================================================
--- Template-Declare/branches/mixmaster/Changes	(original)
+++ Template-Declare/branches/mixmaster/Changes	Thu Oct  8 13:24:16 2009
@@ -11,6 +11,9 @@
   classes in which they are defined, rather than the subclass. This makes
   "alias" consistent with "import_templates".
 * Added "mix" and deprecated "alias" and "import_templates".
+* Deprecated the undocumented "aliases()" and "alias_metadata()" methods, as
+  they are no longer needed. They're now no-ops that issue warnings. To be
+  removed altogether in a future version.
 
 0.40_01 2009-08-12
 * Support for inline tagset definitions. Thanks to Olivier 'dolmen' Mengué

Modified: Template-Declare/branches/mixmaster/lib/Template/Declare.pm
==============================================================================
--- Template-Declare/branches/mixmaster/lib/Template/Declare.pm	(original)
+++ Template-Declare/branches/mixmaster/lib/Template/Declare.pm	Thu Oct  8 13:24:16 2009
@@ -45,6 +45,27 @@
     return [ reverse @{ $class->dispatch_to } ];
 }
 
+# Removed methods that no longer work (and were never documented anyway).
+# Remove these no-ops after a few releases (added for 0.41).
+
+=begin comment
+
+=head3 aliases
+
+=head3 alias_metadata
+
+=cut
+
+sub aliases {
+    require Carp;
+    Carp::cluck( 'aliases() is a deprecated no-op' );
+}
+
+sub alias_metadata {
+    require Carp;
+    Carp::cluck( 'alias_metadata() is a deprecated no-op' );
+}
+
 =head1 NAME
 
 Template::Declare - Perlish declarative templates

Modified: Template-Declare/branches/mixmaster/t/aliasing.t
==============================================================================
--- Template-Declare/branches/mixmaster/t/aliasing.t	(original)
+++ Template-Declare/branches/mixmaster/t/aliasing.t	Thu Oct  8 13:24:16 2009
@@ -38,7 +38,6 @@
     };
 };
 
-
 alias Wifty::UI::aliased_pkg under '/aliased_pkg', { VARIABLE => 'SET' } ;
 alias Wifty::UI::aliased_pkg under '/aliased_pkg2';
 alias Wifty::UI::aliased_subclass_pkg under '/aliased_subclass_pkg';


More information about the Jifty-commit mailing list