summaryrefslogtreecommitdiff
path: root/src/entry.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/entry.c')
-rw-r--r--src/entry.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/entry.c b/src/entry.c
index b08623c..9a92311 100644
--- a/src/entry.c
+++ b/src/entry.c
@@ -4,7 +4,6 @@
#include <pango/pangocairo.h>
#include <pango/pango.h>
#include <wchar.h>
-#include "client.h"
#include "entry.h"
#include "log.h"
#include "nelem.h"
@@ -13,26 +12,6 @@
#define TWO_PI 6.283185307179586f
#endif
-void entry_preload(void)
-{
- cairo_surface_t *surface = cairo_image_surface_create(
- CAIRO_FORMAT_ARGB32,
- 10,
- 10
- );
- cairo_t *cr = cairo_create(surface);
-
- PangoContext *context = pango_cairo_create_context(cr);
- PangoLayout *layout = pango_layout_new(context);
- pango_layout_set_text(layout, "test", -1);
- pango_cairo_update_layout(cr, layout);
- pango_cairo_show_layout(cr, layout);
- g_object_unref(layout);
- g_object_unref(context);
- cairo_destroy(cr);
- cairo_surface_destroy(surface);
-}
-
void entry_init(struct entry *entry, uint32_t scale)
{
/* Calculate the size of the entry from our font and various widths. */
@@ -200,7 +179,6 @@ void entry_update(struct entry *entry)
pango_cairo_update_layout(cr, entry->pango.entry_layout);
pango_cairo_show_layout(cr, entry->pango.entry_layout);
- log_debug("%zu\n", entry->results.count);
for (size_t i = 0; i < 5; i++) {
cairo_translate(cr, 0, 50);
PangoLayout *layout = entry->pango.result_layouts[i];