Skip to content

Commit

Permalink
Removed unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveNeudoerffer committed Apr 28, 2024
1 parent 77f7084 commit 68fdf40
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions lib/AoGSmartHome_Items.pm
Original file line number Diff line number Diff line change
Expand Up @@ -216,32 +216,6 @@ use Storable;

#--------------Logging and debugging functions----------------------------------------

sub break_long_str {
my ($self, $str, $prefix, $maxlength) = @_;
my $result;

$result = '';
$str = $str || '';
while( length( $str ) > $maxlength ) {
my $l = 0;
my $i;
for( $i=0; $i<length($str) && $l<$maxlength; ++$i,++$l ) {
if( substr( $str, $i, 1 ) eq "\n" ) {
$l = 0;
}
}
$result .= $prefix;
$result .= substr( $str, 0, $i );
$str = substr( $str, $i );
$prefix = '.... ';
}
if( $str ) {
$result .= $prefix;
$result .= $str;
}
return $result;
}

sub log {
my ($self, $str, $prefix) = @_;

Expand Down

0 comments on commit 68fdf40

Please sign in to comment.