Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/Remmina/Remmina.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntenore Gatta <antenore@simbiosi.org>2022-11-12 03:22:07 +0300
committerAntenore Gatta <antenore@simbiosi.org>2022-11-12 03:22:07 +0300
commit436209db8998a8c44232061078d0e19a80cf6879 (patch)
treed5fcd05eabdd0e0b16999b049d48c309eb650f56
parentdd63c22a4aeb302e604368677903ae2b6ac67715 (diff)
Removed unuseed functionsref/news-cleaning
-rw-r--r--src/remmina_utils.c24
-rw-r--r--src/remmina_utils.h1
2 files changed, 1 insertions, 24 deletions
diff --git a/src/remmina_utils.c b/src/remmina_utils.c
index 5d23b2fba..c09ca94d7 100644
--- a/src/remmina_utils.c
+++ b/src/remmina_utils.c
@@ -496,26 +496,4 @@ DONE:
fclose(file);
return digest;
-}
-
-/**
- * Generate a random sting of chars to be used as part of UID for news or stats
- * @return a string or NULL. Caller must free it with g_free().
- */
-gchar *remmina_gen_random_uuid()
-{
- TRACE_CALL(__func__);
- gchar *result;
- int i;
- static char alpha[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
-
- result = g_malloc0(15);
-
- for (i = 0; i < 7; i++)
- result[i] = alpha[randombytes_uniform(sizeof(alpha))];
-
- for (i = 0; i < 7; i++)
- result[i + 7] = alpha[randombytes_uniform(sizeof(alpha))];
-
- return result;
-}
+} \ No newline at end of file
diff --git a/src/remmina_utils.h b/src/remmina_utils.h
index a801f5e09..417072875 100644
--- a/src/remmina_utils.h
+++ b/src/remmina_utils.h
@@ -58,5 +58,4 @@ gchar *remmina_utils_get_lsb_codename();
GHashTable *remmina_utils_get_etc_release();
const gchar *remmina_utils_get_os_info();
gchar *remmina_sha1_file(const gchar *filename);
-gchar *remmina_gen_random_uuid();
G_END_DECLS