From 508207ae04b06bee853adfba89033e8e95349662 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Mon, 9 Apr 2012 15:04:14 +0200 Subject: [PATCH] Removed superfluous function. --- src/x11_clipboard.c | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/src/x11_clipboard.c b/src/x11_clipboard.c index a0640873..ab2a5c1d 100644 --- a/src/x11_clipboard.c +++ b/src/x11_clipboard.c @@ -37,23 +37,6 @@ #include -//======================================================================== -// Get the corresponding X11 format for a given GLFW format. -//======================================================================== - -static Atom* getInternalFormat(int format) -{ - // Get the necessary atoms - switch (format) - { - case GLFW_CLIPBOARD_FORMAT_STRING: - return _glfwLibrary.X11.selection.atoms.string; - default: - return 0; - } -} - - ////////////////////////////////////////////////////////////////////////// ////// GLFW internal API ////// ////////////////////////////////////////////////////////////////////////// @@ -161,7 +144,7 @@ size_t _glfwPlatformGetClipboardData(void *data, size_t size, int format) // Try different clipboards and formats that relate to the GLFW // format with preference for more appropriate formats first - Atom *xfmt = getInternalFormat(format); + Atom *xfmt = _glfwLibrary.X11.selection.atoms.string; Atom *xfmtend = xfmt + _GLFW_STRING_ATOM_COUNT; // Get the currently active window