mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-27 10:56:00 +01:00
Remove more unused functions
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
parent
3a0fe29336
commit
6599b921a3
2 changed files with 0 additions and 54 deletions
26
utils.c
26
utils.c
|
@ -23,21 +23,6 @@
|
|||
#include "page.h"
|
||||
#include "plugin.h"
|
||||
|
||||
const char*
|
||||
file_get_extension(const char* path)
|
||||
{
|
||||
if (path == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
const char* res = strrchr(path, '.');
|
||||
if (res == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return res + 1;
|
||||
}
|
||||
|
||||
bool
|
||||
file_valid_extension(zathura_t* zathura, const char* path)
|
||||
{
|
||||
|
@ -87,17 +72,6 @@ document_index_build(GtkTreeModel* model, GtkTreeIter* parent,
|
|||
GIRARA_LIST_FOREACH_END(list, gchar*, iter, name);
|
||||
}
|
||||
|
||||
void
|
||||
page_calculate_offset(zathura_t* zathura, zathura_page_t* page, page_offset_t* offset)
|
||||
{
|
||||
g_return_if_fail(page != NULL);
|
||||
g_return_if_fail(offset != NULL);
|
||||
GtkWidget* widget = zathura_page_get_widget(zathura, page);
|
||||
|
||||
g_return_if_fail(gtk_widget_translate_coordinates(widget,
|
||||
zathura->ui.page_widget, 0, 0, &(offset->x), &(offset->y)) == true);
|
||||
}
|
||||
|
||||
zathura_rectangle_t
|
||||
rotate_rectangle(zathura_rectangle_t rectangle, unsigned int degree, double height, double width)
|
||||
{
|
||||
|
|
28
utils.h
28
utils.h
|
@ -17,14 +17,6 @@ typedef struct page_offset_s
|
|||
int y;
|
||||
} page_offset_t;
|
||||
|
||||
/**
|
||||
* Returns the file extension of a path
|
||||
*
|
||||
* @param path Path to the file
|
||||
* @return The file extension or NULL
|
||||
*/
|
||||
const char* file_get_extension(const char* path);
|
||||
|
||||
/**
|
||||
* This function checks if the file has a valid extension. A extension is
|
||||
* evaluated as valid if it matches a supported filetype.
|
||||
|
@ -35,15 +27,6 @@ const char* file_get_extension(const char* path);
|
|||
*/
|
||||
bool file_valid_extension(zathura_t* zathura, const char* path);
|
||||
|
||||
/**
|
||||
* Executes a system command and saves its output into output
|
||||
*
|
||||
* @param argv The command
|
||||
* @param output Pointer where the output will be saved
|
||||
* @return true if no error occured, otherwise false
|
||||
*/
|
||||
bool execute_command(char* const argv[], char** output);
|
||||
|
||||
/**
|
||||
* Generates the document index based upon the list retreived from the document
|
||||
* object.
|
||||
|
@ -54,17 +37,6 @@ bool execute_command(char* const argv[], char** output);
|
|||
*/
|
||||
void document_index_build(GtkTreeModel* model, GtkTreeIter* parent, girara_tree_node_t* tree);
|
||||
|
||||
/**
|
||||
* Calculates the offset of the page to the top of the viewing area as
|
||||
* well as to the left side of it. The result has to be freed.
|
||||
*
|
||||
* @param zathura Zathura session
|
||||
* @param page The Page
|
||||
* @param offset Applied offset
|
||||
* @return The calculated offset or NULL if an error occured
|
||||
*/
|
||||
void page_calculate_offset(zathura_t* zathura, zathura_page_t* page, page_offset_t* offset);
|
||||
|
||||
/**
|
||||
* Rotate a rectangle by 0, 90, 180 or 270 degree
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue