diff --git a/libgitg/gitg-js-utils.c b/libgitg/gitg-js-utils.c deleted file mode 100644 index 8e6123a9..00000000 --- a/libgitg/gitg-js-utils.c +++ /dev/null @@ -1,39 +0,0 @@ -#include "gitg-js-utils.h" - -#include - -gchar * -gitg_js_utils_get_json (WebKitJavascriptResult *js_result) -{ - JSValueRef value; - JSStringRef json; - size_t size; - gchar *ret; - - value = webkit_javascript_result_get_value (js_result); - - json = JSValueCreateJSONString(webkit_javascript_result_get_global_context (js_result), - value, - 0, - NULL); - - size = JSStringGetMaximumUTF8CStringSize (json); - ret = g_new0 (gchar, size); - - JSStringGetUTF8CString (json, ret, size); - JSStringRelease (json); - - return ret; -} - -gboolean -gitg_js_utils_check (WebKitJavascriptResult *js_result) -{ - JSValueRef value; - - value = webkit_javascript_result_get_value (js_result); - - return JSValueToBoolean (webkit_javascript_result_get_global_context (js_result), - value); -} - diff --git a/libgitg/gitg-js-utils.h b/libgitg/gitg-js-utils.h deleted file mode 100644 index 4e5e65f0..00000000 --- a/libgitg/gitg-js-utils.h +++ /dev/null @@ -1,10 +0,0 @@ -#ifndef __GITG_JS_UTILS_H__ -#define __GITG_JS_UTILS_H__ - -#include - -gchar *gitg_js_utils_get_json (WebKitJavascriptResult *js_result); -gboolean gitg_js_utils_check (WebKitJavascriptResult *js_result); - -#endif /* __GITG_JS_UTILS_H__ */ -