repo: rxvt-unicode-sixel
action: commit
revision: 
path_from: 
revision_from: 761324853b848a69cb730ff159ce40a0ff180e25:
path_to: 
revision_to: 
git.thebackupbox.net
rxvt-unicode-sixel
git clone git://git.thebackupbox.net/rxvt-unicode-sixel
commit 761324853b848a69cb730ff159ce40a0ff180e25
Author: Emanuele Giaquinta 
Date:   Mon Dec 5 12:22:50 2011 +0000

    Remove useless checks.

diff --git a/src/keyboard.C b/src/keyboard.C
index 770051717123cc01f51655d89fc3cffed1372964..
index ..2a9895226470cbe2eb26e3bfabe8c97de7cd81b8 100644
--- a/src/keyboard.C
+++ b/src/keyboard.C
@@ -114,9 +114,6 @@ keyboard_manager::register_user_translation (KeySym keysym, unsigned int state,

   keysym_t *key = new keysym_t;

-  if (!key)
-    rxvt_fatal ("memory allocation failure. aborting.\n");
-
   key->keysym = keysym;
   key->state  = state;
   key->str    = translation;
diff --git a/src/rxvtdaemon.C b/src/rxvtdaemon.C
index 3f689967f66bba018334976c7073361289d37c9c..
index ..bdce770e8d9921705d1a53ac76637504e8dd1dfc 100644
--- a/src/rxvtdaemon.C
+++ b/src/rxvtdaemon.C
@@ -95,9 +95,6 @@ bool rxvt_connection::recv (auto_str &data, int *len)

   data = new char[l + 1];

-  if (!data)
-    return false;
-
   if (read (fd, data, l) != l)
     return false;

-----END OF PAGE-----