[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb:[6528] trunk/LedgerSMB.pm



Revision: 6528
          http://sourceforge.net/p/ledger-smb/code/6528
Author:   einhverfr
Date:     2014-01-18 12:24:37 +0000 (Sat, 18 Jan 2014)
Log Message:
-----------
is_blank currently unused too

Modified Paths:
--------------
    trunk/LedgerSMB.pm

Modified: trunk/LedgerSMB.pm
===================================================================
--- trunk/LedgerSMB.pm	2014-01-18 12:21:05 UTC (rev 6527)
+++ trunk/LedgerSMB.pm	2014-01-18 12:24:37 UTC (rev 6528)
@@ -48,11 +48,6 @@
 If $amount is a Bigfloat, it is returned as is.  If it is a string, it is 
 parsed according to the user preferences stored in the LedgerSMB::User object.
 
-=item is_blank (name => $string)
-
-This function returns true if $self->{$string} only consists of whitespace
-characters or is an empty string.
-
 =item is_run_mode ('(cli|cgi|mod_perl)')
 
 This function returns 1 if the run mode is what is specified.  Otherwise
@@ -419,26 +414,6 @@
 }
 
 
-sub is_blank {
-    my $self = shift @_;
-    my %args = @_;
-    my $name = $args{name};
-    my $rc;
-
-    if (not defined $name){
-        $self->{_locale} = LedgerSMB::Locale->get_handle('en') unless defined $self->{_locale};
-        $self->error($self->{_locale}->text('Field \"Name\" Not Defined'));
-    }
-
-    if ( $self->{$name} =~ /^\s*$/ ) {
-        $rc = 1;
-    }
-    else {
-        $rc = 0;
-    }
-    $rc;
-}
-
 sub is_run_mode {
     my $self = shift @_;
     #avoid 'uninitialized' warnings in tests

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits