diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2012-10-26 17:59:42 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2012-10-26 17:59:42 +0100 |
commit | dee67875c1ef981bd3dc56e652df93d4a6f4feda (patch) | |
tree | 144afe9df52afaa54f273ff31406896ce8e99794 /json-glib/json-scanner.h | |
parent | e83baeab7ce16db4597247e793932fd2e507e855 (diff) | |
download | json-glib-dee67875c1ef981bd3dc56e652df93d4a6f4feda.tar.gz |
scanner: Remove unused functions
JsonScanner is an internal, modified copy of GScanner; we don't need a
bunch of the provided functions, as the type and its related API are
meant for internal use only.
Fewer functions == better coverage == less code to maintain.
Diffstat (limited to 'json-glib/json-scanner.h')
-rw-r--r-- | json-glib/json-scanner.h | 45 |
1 files changed, 2 insertions, 43 deletions
diff --git a/json-glib/json-scanner.h b/json-glib/json-scanner.h index 606934e..25b076a 100644 --- a/json-glib/json-scanner.h +++ b/json-glib/json-scanner.h @@ -42,8 +42,7 @@ typedef struct _JsonScanner JsonScanner; typedef struct _JsonScannerConfig JsonScannerConfig; typedef void (* JsonScannerMsgFunc) (JsonScanner *scanner, - gchar *message, - gboolean is_error); + gchar *message); /** * JsonTokenType: @@ -107,7 +106,6 @@ struct _JsonScanner /* to be considered private */ GHashTable *symbol_table; - gint input_fd; const gchar *text; const gchar *text_end; gchar *buffer; @@ -122,11 +120,6 @@ JsonScanner *json_scanner_new (void); G_GNUC_INTERNAL void json_scanner_destroy (JsonScanner *scanner); G_GNUC_INTERNAL -void json_scanner_input_file (JsonScanner *scanner, - gint input_fd); -G_GNUC_INTERNAL -void json_scanner_sync_file_offset (JsonScanner *scanner); -G_GNUC_INTERNAL void json_scanner_input_text (JsonScanner *scanner, const gchar *text, guint text_len); @@ -135,55 +128,21 @@ GTokenType json_scanner_get_next_token (JsonScanner *scanner); G_GNUC_INTERNAL GTokenType json_scanner_peek_next_token (JsonScanner *scanner); G_GNUC_INTERNAL -GTokenType json_scanner_cur_token (JsonScanner *scanner); -G_GNUC_INTERNAL -GTokenValue json_scanner_cur_value (JsonScanner *scanner); -G_GNUC_INTERNAL -guint json_scanner_cur_line (JsonScanner *scanner); -G_GNUC_INTERNAL -guint json_scanner_cur_position (JsonScanner *scanner); -G_GNUC_INTERNAL -gboolean json_scanner_eof (JsonScanner *scanner); -G_GNUC_INTERNAL -guint json_scanner_set_scope (JsonScanner *scanner, - guint scope_id); -G_GNUC_INTERNAL void json_scanner_scope_add_symbol (JsonScanner *scanner, guint scope_id, const gchar *symbol, gpointer value); G_GNUC_INTERNAL -void json_scanner_scope_remove_symbol (JsonScanner *scanner, - guint scope_id, - const gchar *symbol); -G_GNUC_INTERNAL -gpointer json_scanner_scope_lookup_symbol (JsonScanner *scanner, - guint scope_id, - const gchar *symbol); -G_GNUC_INTERNAL -void json_scanner_scope_foreach_symbol (JsonScanner *scanner, - guint scope_id, - GHFunc func, - gpointer user_data); -G_GNUC_INTERNAL -gpointer json_scanner_lookup_symbol (JsonScanner *scanner, - const gchar *symbol); -G_GNUC_INTERNAL void json_scanner_unexp_token (JsonScanner *scanner, GTokenType expected_token, const gchar *identifier_spec, const gchar *symbol_spec, const gchar *symbol_name, - const gchar *message, - gint is_error); + const gchar *message); G_GNUC_INTERNAL void json_scanner_error (JsonScanner *scanner, const gchar *format, ...) G_GNUC_PRINTF (2,3); -G_GNUC_INTERNAL -void json_scanner_warn (JsonScanner *scanner, - const gchar *format, - ...) G_GNUC_PRINTF (2,3); G_END_DECLS |