remove unecessary exported function from plain text content handler

This commit is contained in:
Vincent Sanders 2020-07-27 22:56:17 +01:00
parent 652078f8cf
commit 1f2946a710
2 changed files with 11 additions and 22 deletions

View File

@ -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;
}

View File

@ -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