mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-25 07:49:38 +03:00
remove unecessary exported function from plain text content handler
This commit is contained in:
parent
652078f8cf
commit
1f2946a710
@ -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;
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user