[gegl] gegl: remove dead code
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] gegl: remove dead code
- Date: Fri, 23 Dec 2016 20:09:52 +0000 (UTC)
commit 7825c4c9a88770aed97fbd1adfba5a095172729d
Author: Øyvind Kolås <pippin gimp org>
Date: Fri Dec 23 19:49:06 2016 +0100
gegl: remove dead code
gegl/gegl-types-internal.h | 12 ------------
1 files changed, 0 insertions(+), 12 deletions(-)
---
diff --git a/gegl/gegl-types-internal.h b/gegl/gegl-types-internal.h
index de5dd83..d39606e 100644
--- a/gegl/gegl-types-internal.h
+++ b/gegl/gegl-types-internal.h
@@ -47,26 +47,14 @@ struct _GeglDimension
gint height;
};
-
static inline int gegl_level_from_scale (gfloat scale)
{
gint level = 0;
- //gint factor = 1;
while (scale <= 0.500001)
{
scale *= 2;
- // factor *= 2;
level++;
-#if 0
- if (rect)
- {
- rect->x = 0 < rect->x ? rect->x/2 : (rect->x - 1) / 2;
- rect->y = 0 < rect->y ? rect->y/2 : (rect->y - 1) / 2;
- rect->width = 0 < rect->width ? rect->width/2 : (rect->width - 1) / 2;
- rect->height = 0 < rect->height ? rect->height/2 : (rect->height - 1) / 2;
- }
-#endif
}
return level;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]