From 70ca3bfe4173aabd352fd0aed484c0bab57a8d02 Mon Sep 17 00:00:00 2001 From: Robert Bragg Date: Wed, 11 Nov 2009 12:52:08 +0000 Subject: [PATCH] [cogl] remove unused gles/cogl-utils.[c,h] The only function in gles/cogl-utils.c was cogl_util_next_p2() and it's redundant since we also have a cogl/cogl-utils.[c,h] --- clutter/cogl/cogl/driver/gles/cogl-util.c | 49 ------------------------------- clutter/cogl/cogl/driver/gles/cogl-util.h | 30 ------------------- 2 files changed, 79 deletions(-) delete mode 100644 clutter/cogl/cogl/driver/gles/cogl-util.c delete mode 100644 clutter/cogl/cogl/driver/gles/cogl-util.h diff --git a/clutter/cogl/cogl/driver/gles/cogl-util.c b/clutter/cogl/cogl/driver/gles/cogl-util.c deleted file mode 100644 index 4fc90b8..0000000 --- a/clutter/cogl/cogl/driver/gles/cogl-util.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Cogl - * - * An object oriented GL/GLES Abstraction/Utility Layer - * - * Copyright (C) 2007,2008,2009 Intel Corporation. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the - * Free Software Foundation, Inc., 59 Temple Place - Suite 330, - * Boston, MA 02111-1307, USA. - */ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - -#include "cogl.h" -#include "cogl-internal.h" -#include "cogl-util.h" - -/** - * cogl_util_next_p2: - * @a: Value to get the next power - * - * Calculates the next power greater than @a. - * - * Return value: The next power after @a. - */ -int -cogl_util_next_p2 (int a) -{ - int rval=1; - - while(rval < a) - rval <<= 1; - - return rval; -} diff --git a/clutter/cogl/cogl/driver/gles/cogl-util.h b/clutter/cogl/cogl/driver/gles/cogl-util.h deleted file mode 100644 index 589ddd3..0000000 --- a/clutter/cogl/cogl/driver/gles/cogl-util.h +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Cogl - * - * An object oriented GL/GLES Abstraction/Utility Layer - * - * Copyright (C) 2007,2008,2009 Intel Corporation. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the - * Free Software Foundation, Inc., 59 Temple Place - Suite 330, - * Boston, MA 02111-1307, USA. - */ - -#ifndef __COGL_UTIL_H -#define __COGL_UTIL_H - -int -cogl_util_next_p2 (int a); - -#endif /* __COGL_UTIL_H */ -- 2.7.4