mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-04-05 03:10:35 +02:00
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:
parent
91185e41e6
commit
c7965ea19a
2 changed files with 0 additions and 18 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue