Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf.git/shortlog/1f2946a7109310ddc8fa21ff28ce0add14c09a02
...commit 
http://git.netsurf-browser.org/netsurf.git/commit/1f2946a7109310ddc8fa21ff28ce0add14c09a02
...tree 
http://git.netsurf-browser.org/netsurf.git/tree/1f2946a7109310ddc8fa21ff28ce0add14c09a02

The branch, master has been updated
       via  1f2946a7109310ddc8fa21ff28ce0add14c09a02 (commit)
      from  652078f8cf098c1afb6e7c9dfcb0d70415db301c (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commitdiff 
http://git.netsurf-browser.org/netsurf.git/commit/?id=1f2946a7109310ddc8fa21ff28ce0add14c09a02
commit 1f2946a7109310ddc8fa21ff28ce0add14c09a02
Author: Vincent Sanders <[email protected]>
Commit: Vincent Sanders <[email protected]>

    remove unecessary exported function from plain text content handler

diff --git a/content/handlers/text/textplain.c 
b/content/handlers/text/textplain.c
index 21876ec..60051f5 100644
--- a/content/handlers/text/textplain.c
+++ b/content/handlers/text/textplain.c
@@ -1605,13 +1605,23 @@ textplain_textselection_copy(struct content *c,
        return NSERROR_OK;
 }
 
+
+/**
+ * Retrieve the index of the end of the text
+ *
+ * \param[in] c Content to retrieve size of
+ * \return Size, in bytes, of data
+ */
 static nserror
 textplain_textselection_get_end(struct content *c, unsigned *end_idx)
 {
-       *end_idx = textplain_size(c);
+       textplain_content *text = (textplain_content *)c;
+
+       *end_idx = text->utf8_data_size;
        return NSERROR_OK;
 }
 
+
 /**
  * plain text content handler table
  */
@@ -1671,12 +1681,3 @@ nserror textplain_init(void)
 
 
 
-/* exported interface documented in html/textplain.h */
-size_t textplain_size(struct content *c)
-{
-       textplain_content *text = (textplain_content *) c;
-
-       assert(c != NULL);
-
-       return text->utf8_data_size;
-}
diff --git a/content/handlers/text/textplain.h 
b/content/handlers/text/textplain.h
index b94ee33..6cc2716 100644
--- a/content/handlers/text/textplain.h
+++ b/content/handlers/text/textplain.h
@@ -26,9 +26,6 @@
 #ifndef NETSURF_HTML_TEXTPLAIN_H
 #define NETSURF_HTML_TEXTPLAIN_H
 
-struct content;
-struct rect;
-
 /**
  * Initialise the text content handler
  *
@@ -37,13 +34,4 @@ struct rect;
 nserror textplain_init(void);
 
 
-/**
- * Retrieve the size (in bytes) of text data
- *
- * \param[in] c Content to retrieve size of
- * \return Size, in bytes, of data
- */
-size_t textplain_size(struct content *c);
-
-
 #endif


-----------------------------------------------------------------------

Summary of changes:
 content/handlers/text/textplain.c |   21 +++++++++++----------
 content/handlers/text/textplain.h |   12 ------------
 2 files changed, 11 insertions(+), 22 deletions(-)

diff --git a/content/handlers/text/textplain.c 
b/content/handlers/text/textplain.c
index 21876ec..60051f5 100644
--- a/content/handlers/text/textplain.c
+++ b/content/handlers/text/textplain.c
@@ -1605,13 +1605,23 @@ textplain_textselection_copy(struct content *c,
        return NSERROR_OK;
 }
 
+
+/**
+ * Retrieve the index of the end of the text
+ *
+ * \param[in] c Content to retrieve size of
+ * \return Size, in bytes, of data
+ */
 static nserror
 textplain_textselection_get_end(struct content *c, unsigned *end_idx)
 {
-       *end_idx = textplain_size(c);
+       textplain_content *text = (textplain_content *)c;
+
+       *end_idx = text->utf8_data_size;
        return NSERROR_OK;
 }
 
+
 /**
  * plain text content handler table
  */
@@ -1671,12 +1681,3 @@ nserror textplain_init(void)
 
 
 
-/* exported interface documented in html/textplain.h */
-size_t textplain_size(struct content *c)
-{
-       textplain_content *text = (textplain_content *) c;
-
-       assert(c != NULL);
-
-       return text->utf8_data_size;
-}
diff --git a/content/handlers/text/textplain.h 
b/content/handlers/text/textplain.h
index b94ee33..6cc2716 100644
--- a/content/handlers/text/textplain.h
+++ b/content/handlers/text/textplain.h
@@ -26,9 +26,6 @@
 #ifndef NETSURF_HTML_TEXTPLAIN_H
 #define NETSURF_HTML_TEXTPLAIN_H
 
-struct content;
-struct rect;
-
 /**
  * Initialise the text content handler
  *
@@ -37,13 +34,4 @@ struct rect;
 nserror textplain_init(void);
 
 
-/**
- * Retrieve the size (in bytes) of text data
- *
- * \param[in] c Content to retrieve size of
- * \return Size, in bytes, of data
- */
-size_t textplain_size(struct content *c);
-
-
 #endif


-- 
NetSurf Browser
_______________________________________________
netsurf-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to