repo: rxvt-unicode-sixel action: commit revision: path_from: revision_from: 761324853b848a69cb730ff159ce40a0ff180e25: path_to: revision_to:
commit 761324853b848a69cb730ff159ce40a0ff180e25 Author: Emanuele GiaquintaDate: Mon Dec 5 12:22:50 2011 +0000 Remove useless checks. diff --git a/src/keyboard.C b/src/keyboard.C
--- 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
--- 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-----