Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

remove some deprecated subs and methods

  • Loading branch information...
commit 3a20b76b46fcdfd5dc0a31d04eca9a3f01d0be8c 1 parent 1d4eb48
@moritz moritz authored
Showing with 1 addition and 10 deletions.
  1. +1 −0  docs/ChangeLog
  2. +0 −10 src/core/Cool.pm
View
1  docs/ChangeLog
@@ -5,6 +5,7 @@ New in 2012.08
+ the argument to IO::Socket.recv is now interpreted as a number of characters
+ enum lists and arguments to parametric roles are now evaluated at compile time
+ switched to new internal AST representation (QAST)
++ removed deprecated routines Str.bytes and Str.lcfirst/&lcfirst
New in 2012.07
+ Deprecated SAFE.setting in favor of RESTRICTED.setting
View
10 src/core/Cool.pm
@@ -56,10 +56,6 @@ my class Cool {
## string methods
- method bytes() is DEPRECATED {
- nqp::p6box_i(pir::bytelength__IS(nqp::unbox_s(self.Str)));
- }
-
method chars() {
nqp::p6box_i(nqp::chars(nqp::unbox_s(self.Str)));
}
@@ -94,11 +90,6 @@ my class Cool {
$self-str eq '' ?? '' !! $self-str.substr(0, 1).uc ~ $self-str.substr(1)
}
- method lcfirst() is DEPRECATED {
- my $self-str = self.Str;
- $self-str eq '' ?? '' !! $self-str.substr(0, 1).lc ~ $self-str.substr(1)
- }
-
method capitalize() { self.Stringy.capitalize }
method chomp() {
@@ -210,7 +201,6 @@ sub ord(Cool $s) { $s.ord }
sub substr(Cool $s,$pos,$chars?) { $s.substr($pos,$chars) }
sub uc(Cool $s) { $s.uc }
-sub lcfirst(Cool $s) is DEPRECATED { $s.lcfirst }
sub ucfirst(Cool $s) is DEPRECATED { $s.ucfirst }
proto sub rindex(|$) { * };
Please sign in to comment.
Something went wrong with that request. Please try again.