Skip to content

Commit

Permalink
Removed unused methods. (#863)
Browse files Browse the repository at this point in the history
  • Loading branch information
siad007 authored and mrook committed Feb 12, 2018
1 parent 7379c57 commit 27cda65
Showing 1 changed file with 0 additions and 54 deletions.
54 changes: 0 additions & 54 deletions classes/phing/util/StringHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,48 +56,6 @@ public static function unqualify($qualifiedName, $separator = '.')
}
}

/**
* @param array $columns String[]
* @param string $prefix
*
* @return array String[]
*/
public static function prefix($columns, $prefix)
{
if ($prefix == null) {
return $columns;
}
$qualified = [];
foreach ($columns as $key => $column) {
$qualified[$key] = $prefix . $column;
}

return $qualified;
}

/**
* @param $qualifiedName
* @param string $separator
*
* @return string
*/
public static function root($qualifiedName, $separator = '.')
{
$loc = strpos($qualifiedName, $separator);

return ($loc === false) ? $qualifiedName : substr($qualifiedName, 0, $loc);
}

/**
* @param $string
*
* @return int
*/
public static function hashCode($string)
{
return crc32($string);
}

/**
* @param bool|string $s
*
Expand Down Expand Up @@ -136,18 +94,6 @@ public static function isBoolean($s)
return (boolean) in_array($test, array_merge(self::$FALSE_VALUES, self::$TRUE_VALUES));
}

/**
* Creates a key based on any number of passed params.
*
* @return string
*/
public static function key()
{
$args = func_get_args();

return serialize($args);
}

/**
* tests if a string starts with a given string
*
Expand Down

0 comments on commit 27cda65

Please sign in to comment.