changeset 20576:0fc9b572e566

eliminate error_state from libgui * Backend.cc (Backend::toolkitObjectProxy): Don't check error_state.
author John W. Eaton <jwe@octave.org>
date Fri, 02 Oct 2015 16:07:41 -0400
parents 3339c9bdfe6a
children c547458dc10e
files libgui/graphics/Backend.cc
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libgui/graphics/Backend.cc	Sat Oct 03 07:32:50 2015 +0200
+++ b/libgui/graphics/Backend.cc	Fri Oct 02 16:07:41 2015 -0400
@@ -215,8 +215,7 @@
         {
           OCTAVE_INTPTR_TYPE ptr = ov.OCTAVE_PTR_SCALAR ().value ();
 
-          if (! error_state)
-            return reinterpret_cast<ObjectProxy*> (ptr);
+          return reinterpret_cast<ObjectProxy*> (ptr);
         }
     }