From ca6be72dff1471556303676aea89cd72a7c0f507 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Fri, 3 Aug 2012 18:28:07 +0100 Subject: Remove extraneous functionage --- amiga/clipboard.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'amiga/clipboard.c') diff --git a/amiga/clipboard.c b/amiga/clipboard.c index 49cee2dee..ef8602360 100755 --- a/amiga/clipboard.c +++ b/amiga/clipboard.c @@ -198,18 +198,10 @@ bool gui_add_to_clipboard(const char *text, size_t length, bool space) These only seem to be called from desktop/textinput.c in this specific order, if they are added elsewhere this might need a rewrite. */ - if(text) - { - if(!ami_add_to_clipboard(text, length, space)) return false; - } - - return true; -} - -bool ami_add_to_clipboard(const char *text, size_t length, bool space) -{ char *buffer; + if(text == NULL) return true; + if(!(PushChunk(iffh,0,ID_CHRS,IFFSIZE_UNKNOWN))) { if(nsoption_bool(utf8_clipboard) || ami_utf8_clipboard) { WriteChunkBytes(iffh,text,length); -- cgit v1.2.3