ply-utils: Drop unused ply_string_has_prefix helper

ply_string_has_prefix is no longer used anywhere, drop it.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
Hans de Goede 2019-09-28 21:59:20 +02:00
parent 91185e41e6
commit c7965ea19a
2 changed files with 0 additions and 18 deletions

View file

@ -459,22 +459,6 @@ ply_free_string_array (char **array)
free (array);
}
bool
ply_string_has_prefix (const char *string,
const char *prefix)
{
if (string == NULL)
return false;
if (prefix == NULL)
return false;
if (strlen (prefix) > strlen (string))
return false;
return strncmp (string, prefix, strlen (prefix)) == 0;
}
double
ply_get_timestamp (void)
{

View file

@ -83,8 +83,6 @@ bool ply_fd_has_data (int fd);
bool ply_set_fd_as_blocking (int fd);
char **ply_copy_string_array (const char *const *array);
void ply_free_string_array (char **array);
bool ply_string_has_prefix (const char *string,
const char *prefix);
double ply_get_timestamp (void);
void ply_save_errno (void);