[gjs: 1/2] repo: Remove unused function
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs: 1/2] repo: Remove unused function
- Date: Tue, 24 Jul 2018 15:34:29 +0000 (UTC)
commit 7ab3c615ec0e2ae17c8db13ca6c0df8e5ecd5dd2
Author: Philip Chimento <philip chimento gmail com>
Date: Mon Jul 23 22:37:45 2018 -0400
repo: Remove unused function
Closes #174
gi/repo.cpp | 26 --------------------------
gi/repo.h | 1 -
2 files changed, 27 deletions(-)
---
diff --git a/gi/repo.cpp b/gi/repo.cpp
index bb1e5422..378bdf51 100644
--- a/gi/repo.cpp
+++ b/gi/repo.cpp
@@ -699,32 +699,6 @@ gjs_info_type_name(GIInfoType type)
}
}
-char*
-gjs_camel_from_hyphen(const char *hyphen_name)
-{
- GString *s;
- const char *p;
- bool next_upper;
-
- s = g_string_sized_new(strlen(hyphen_name) + 1);
-
- next_upper = false;
- for (p = hyphen_name; *p; ++p) {
- if (*p == '-' || *p == '_') {
- next_upper = true;
- } else {
- if (next_upper) {
- g_string_append_c(s, g_ascii_toupper(*p));
- next_upper = false;
- } else {
- g_string_append_c(s, *p);
- }
- }
- }
-
- return g_string_free(s, false);
-}
-
char*
gjs_hyphen_from_camel(const char *camel_name)
{
diff --git a/gi/repo.h b/gi/repo.h
index e1338ef5..b1a89a6f 100644
--- a/gi/repo.h
+++ b/gi/repo.h
@@ -55,7 +55,6 @@ bool gjs_define_info(JSContext *context,
GIBaseInfo *info,
bool *defined);
-char* gjs_camel_from_hyphen (const char *hyphen_name);
char* gjs_hyphen_from_camel (const char *camel_name);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]